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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top