Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Image Crop

4: Adsense

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   

253
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

#2 Kazade   Members   

1019
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.