Thread: 32 bit image

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    162

    32 bit image

    Hi
    I ve got an issue with images which are meant to be transparent. If I add to my project a picture which is 32 bit (may be transparent) the programme appear a 24 bit image without any transparent areas.

    Do you know how to solve this problem. It might be a bit more difficult, but please any help would be appreciated.

    Thank you very much

  2. #2
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    do you mean that it appears in the resource editor as an image without transparency? this is to make editing it easier. Personally, i prefer to load images at run time, since having them as an external file makes it even easier to edit them.

  3. #3
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Try looking up AlphaBlend - it's what I use (but that may be changing), at least in my Interactive Animation project I've released.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  4. #4
    Registered User
    Join Date
    Apr 2007
    Posts
    162
    Quote Originally Posted by abachler View Post
    do you mean that it appears in the resource editor as an image without transparency? this is to make editing it easier. Personally, i prefer to load images at run time, since having them as an external file makes it even easier to edit them.
    actually there is no problem in the editor, but if I start the application the color is not transparent as it should be.
    I do not know how to set the programme that it should be compatible with 32 bit bitmaps

  5. #5
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    well, since I dont know what the code looks like hint hint I cant tell whats going sour.

    are you using GDI or DirectX or OpenGL?

  6. #6
    Registered User
    Join Date
    Apr 2007
    Posts
    162
    Quote Originally Posted by abachler View Post
    well, since I dont know what the code looks like hint hint I cant tell whats going sour.

    are you using GDI or DirectX or OpenGL?
    GDI is used

  7. #7
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    AlphaBlend is GDI - it's what I use (for now anyway, likely to change).
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting 32 bit binary IP to decimal IP (vice-versa)
    By Mankthetank19 in forum C Programming
    Replies: 15
    Last Post: 12-28-2009, 07:17 PM
  2. Image rotation - doesn't always work
    By ulillillia in forum C Programming
    Replies: 12
    Last Post: 05-03-2007, 12:46 PM
  3. How to check 32 bit limit
    By maven in forum C Programming
    Replies: 3
    Last Post: 09-28-2006, 02:47 AM
  4. bit patterns of negtive numbers?
    By chunlee in forum C Programming
    Replies: 4
    Last Post: 11-08-2004, 08:20 AM
  5. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-12-2004, 11:38 PM