PictureBox control in VBA Excel form?

T

Thomas Wieser

Hi there,

I need to do some image and drawing functions - scale down an image
loaded from a PNG file, setting the white colour as transparent, adding
another file on the bottom of the first file etc.

Now I think the VBA "Image" control has not enough functions to do
that... how can I do these complex operations in VBA? Should I import a
PictureBox control?



Thanks in advance,

Thomas
 
R

Rob van Gelder

There *are* ways, although the one's I know about involve hitting the API.

gdiplus comes standard with Windows XP and is available as a download for
other OS. It's a library with lots of imaging functions. I believe scaling
is one of them.

I have an example of cropping on my website (Charting), but no scaling.
 
Top