32 bit image

This is a discussion on 32 bit image within the Windows Programming forums, part of the Platform Specific Boards category; Hi I ve got an issue with images which are meant to be transparent. If I add to my project ...

  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,189
    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.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  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,189
    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?
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  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, 06: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, 07:20 AM
  5. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-12-2004, 11:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21