Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CImage::Draw - Image format?

CImage::Draw - Image format?

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsadobegame-devjson
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jaran Nilsen
    wrote on last edited by
    #1

    Hi. I am trying to use the CImage class from ATL to handle images in my GDI game. I manage to make it draw the images, or at least some formats. It says in the documentation that the CImage::Draw function is supposed to support both transparency and alpha channel. But I can't seem to make that work. I was wondering if it's just the format that I save my images in that is wrong? I have tried different PNG formats and GIF, but none work correctly. As far as I understand the documentation I am supposed to be able to create a PNG containing transparent color and alpha channel and the Draw function will take care of the rest when I call it... Is that the case? Does anyone know what format I have to save my images in to make them work properly? I tried to save the image with transparency and alpha channel as PNG-24 (from Photoshop), but the transparent color is just semi-transparent when I render it in my game. Anyone know what's wrong? Thanks.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups