Author Topic: how add GdipInitializePalette.lib?  (Read 2229 times)

Offline cambalinho

  • Multiple posting newcomer
  • *
  • Posts: 93
how add GdipInitializePalette.lib?
« on: October 05, 2016, 03:22:56 pm »
i have these code:
Code
Graphics gr(rhs.HBitmap);
        Bitmap btmPallet(rhs.imageweight, rhs.imageheight,&gr);
        btmPallet.InitializePalette(rhs.imgPallet,PaletteType::PaletteTypeFixedHalftone27,0, TRUE, NULL);
        if(rhs.imgPallet==NULL)
            DebugText("palette not");
but i get these error:
"undefined reference to `GdipInitializePalette@20'"
i added the libgdiplus.a and others for use GDIPLUS, but seems that i miss one :(
i can't find the GdipInitializePalette.lib.
can anyone advice me?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org