Jump to content

  • Log In with Google      Sign In   
  • Create Account

Image Crop


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 smhillis   Members   -  Reputation: 100

Like
0Likes
Like

Posted 02 July 2009 - 06:11 AM

I have looked through all of your tutorials but haven't seen anything on how to crop an 8-bit image so all of the black part is removed. I am trying to crop an 8-bit bmp image to the bounding rectangle. Thanks

Sponsor:

#2 Kazade   Moderators   -  Reputation: 1009

Like
0Likes
Like

Posted 03 July 2009 - 09:15 PM

I'm not sure I totally understand what you are trying to do..

What I think you need is Alpha Testing. Take a look at lesson 32

Alpha testing uses the alpha channel to make parts of an image translucent, obviously an 8 bit BMP won't have an alpha channel but you can generate one using the source by assuming any non-black texel has an alpha of 1, and any black part has an alpha of zero.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS