Drawing JPEGs (DirectX?)

This is a discussion on Drawing JPEGs (DirectX?) within the C++ Programming forums, part of the General Programming Boards category; Hello, I want to draw JPEGs onscreen, but I have no idea how to approach this. Would DirectX be the ...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    45

    Drawing JPEGs (DirectX?)

    Hello,
    I want to draw JPEGs onscreen, but I have no idea how to approach this. Would DirectX be the easiest way out (when I say "easiest", I mean shortest)? Actually, I would also like to draw PNG's (or at least have someway of drawing a semi-transparent image).

    Does anyone have any experience in this area?
    Any and all help is greatly appreciated!

  2. #2
    Making mistakes
    Join Date
    Dec 2008
    Posts
    476
    Use SDL and SDL_image. It's pretty straightforward. I don't know for transparency... where?

  3. #3
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    SDL is fairly straightforward, and easy to learn. SDL_image (a library that often gets used along side SDL) supports JPEGs and PNGs. (And this is not Internet Explorer - PNGs are fully supported, and alpha channels work.)

    I have never used DirectX, so I cannot speak to it.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 01:23 AM
  2. DirectX | Simple Drawing
    By gavra in forum Game Programming
    Replies: 8
    Last Post: 05-31-2009, 06:17 PM
  3. Isometric Tile Engine using DirectX
    By Wraithan in forum Game Programming
    Replies: 3
    Last Post: 07-17-2006, 01:16 PM
  4. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  5. Drawing circles in DirectX 8
    By pdstatha in forum Game Programming
    Replies: 3
    Last Post: 07-27-2002, 05:21 PM

Tags for this Thread


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