vstgui and PNG files

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

i have a gui that needs alpha blending, so i'm using png files for the gui. i can't load them as bitmaps (the space shows up black), so i don't know what else to do. here's what i have now for one slider (works for bmp's):

Code: Select all

CBitmap *cWaveMixTBitmap = new CBitmap (kGUIWaveMixTBitmap);

cWaveMixT = new CVerticalSlider (...);
cWaveMixT->setOffsetHandle (...);
cWaveMixT->setTransparency(true);
frame->addView (cWaveMixT);
how do i get the plug to load png files?

thanks,

- tucker

Post

mmm.. i know it's something obvious. do i need the libpng somewhere? just not sure how to do this.

- tucker

Post

Check the whole of this thread, might help.
Image
Don't do it my way.

Post

thanks for getting back to me Borogove. i actually have the images as "PNG" in the .rc file, which seemed to be the problem in that thread. what i don't know however is how to build with libpng enabled, like FEV says he has done.

- tucker

Post

Just put:

Code: Select all

#define USE_LIBPNG 1
in vstgui.h. You will also have to add some of libpng and zlib files to your project. And all of this will work only if you use vstgui 3.0 .

cheers,
Bart
Last edited by FEV on Tue Apr 26, 2005 8:54 pm, edited 2 times in total.

Post

will try shortly.

- tucker

Post Reply

Return to “DSP and Plugin Development”