Results 1 to 2 of 2

Thread: Image Manipulation

  1. #1
    Junior Member Newbie
    Join Date
    May 2002
    Posts
    1

    Image Manipulation

    I'm developing a 2d image manipulation application. I need to be able to "cut-out" polygon shaped sections of a background image and then move/rotate then ontop of that image.
    How would I go about doing this?
    Is there any way to create an image from the intersection of a larger image and a polygon?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Image Manipulation

    Hi !

    You can use glReadPixels to get a reactangular area and use a point in polygon test (google) to find out all pixels that are inside the polygon, not sure if that's what you are looking for... and it's not very fast.

    You can then put the image on a polygon as a texture.

    Mikael


    [This message has been edited by mikael_aronsson (edited 05-06-2002).]

Similar Threads

  1. Mouse manipulation
    By appdeveloper in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-29-2009, 10:12 AM
  2. Image Manipulation
    By jtipton in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 01-17-2007, 04:30 PM
  3. Color manipulation
    By Floyd-ATC in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-02-2006, 09:43 AM
  4. 3D Terrain manipulation
    By zotto in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 03-26-2003, 04:23 AM
  5. Matrix Manipulation's
    By MButchers in forum OpenGL: General
    Replies: 3
    Last Post: 05-19-2001, 09:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean