Results 1 to 2 of 2
  1. #1
    Zelaine is offline Senior Member
    Join Date
    Aug 2013
    Location
    Sweden
    Posts
    161
    Rep Power
    2

    Question LWJGL - Selecting Specific Region of an Image

    Hello fellow programmers!
    As the title implies I want to render a specific region of an image in LWJGL, how do I do that? (And no, I can't just cut that part out and render it for reasons I'm not going to explain.)

    Thanks in advance and king regards! // Emil

  2. #2
    zFollette is offline ▼ dafuq did I do?
    Join Date
    Dec 2013
    Posts
    203
    Rep Power
    0

    Default Re: LWJGL - Selecting Specific Region of an Image

    Quote Originally Posted by Zelaine View Post
    Hello fellow programmers!
    As the title implies I want to render a specific region of an image in LWJGL, how do I do that? (And no, I can't just cut that part out and render it for reasons I'm not going to explain.)

    Thanks in advance and king regards! // Emil
    Images in LWJGL use a coordinate system which goes from 0-1 in float value. In order to render half of an image, your x value would be 0.5f. Same with the y to render half of the image vertically.

Similar Threads

  1. Replies: 0
    Last Post: 08-29-2012, 08:26 AM
  2. Replies: 1
    Last Post: 03-28-2012, 04:58 PM
  3. Replace a region of an image
    By alex88 in forum Java 2D
    Replies: 4
    Last Post: 06-04-2011, 05:21 PM
  4. Replies: 2
    Last Post: 05-01-2010, 09:16 PM
  5. Selecting parts of an image
    By shaungoater in forum Java 2D
    Replies: 1
    Last Post: 12-15-2007, 10:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •