News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

how add GdipInitializePalette.lib?

Started by cambalinho, October 05, 2016, 03:22:56 PM

Previous topic - Next topic

cambalinho

i have these 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?

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]