Loading TGAs into CImage

This is a discussion on Loading TGAs into CImage within the Windows Programming forums, part of the Platform Specific Boards category; Hi i wanted a program to quickly convert bunch of image files into another format(ex. bmp to jpg). So i ...

  1. #1
    Join Date
    Mar 2004
    Kurunegala Colony, Sri Lanka, Sri Lanka

    Loading TGAs into CImage

    i wanted a program to quickly convert bunch of image files into another format(ex. bmp to jpg). So i added that functionality to the msdn sample "SimpleImage" (modified) - goto Tools>Convert Multiple Files.

    But now i have this set of TGA files that i want to convert to JPGs, but the GetExporterFilterString() function does not return TGA as an available image format (program uses CImage library). so CImage::Load() fails when trying to load TGAs. Does anyone know a way to load TGAs into an CImage object?

    Some useless programs i've wrote : slprogrammersheaven
    Youtube: https://www.youtube.com/channel/UCzQWw58Gw5pZK2BYpGPGOZg/videos
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amateur English)

  2. #2
    "I Win!" by U. Lose vart's Avatar
    Join Date
    Oct 2006
    Rishon LeZion, Israel
    I would inherit my clas from the CImage and implement its fuctions for the TGA format using something like
    for the source information...
    For all other formats I would call the base-class functions
    To be or not to be == true

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cargo loading system
    By kyle rull in forum C Programming
    Replies: 1
    Last Post: 04-20-2009, 12:16 PM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Loading a bitmap (Without using glaux)
    By Shamino in forum Game Programming
    Replies: 7
    Last Post: 03-16-2006, 08:43 AM
  4. Loading Screen
    By pinkcheese in forum Windows Programming
    Replies: 2
    Last Post: 04-06-2002, 10:48 PM

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