24 bit bitmap

  • whitewaterbug

    whitewaterbug - 2008-12-02

    The code we are trying is:

    ILuint ImgId;
    ilGenImages(1, &ImgId);
    ilLoadL(IL_JPG, DataJpg, JpgSize);
    ilSaveL(IL_BMP, DataBmp, BmpSize);

    This creates the bitmap but the bitmap isn't 24 bits.  Is there an option to force 24bits?

    • Denton Woods

      Denton Woods - 2008-12-27

      You should be able to try:

      ilConvertImage(IL_RGB, IL_UNSIGNED_BYTE);

      before you save.

      To avoid having to do that everytime you save, you can use this once before you load any images:

      ilSetInteger(IL_FORMAT_MODE, IL_RGB);


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks