Rotate object/Image

Y

Yaacov Klapisch

I have been looking for this for a long time already and it seems nobody
does it.
I use Stephen Leban's code to display images and zoom in and out on them.
I have tried many ways including propretary third party controls but now
there has been changes and I cannot go around and install controls on other
machines.
Therefore I must use the Image Control.
Is there a way to rotate the image? I saw Stephen has a Rotate Text sample
but it is only for the text. Is it possible to adapt it to image?
Anybody know of a sample to rotate a control?
 
S

Stephen Lebans

If you look at the source code, the vbPictureBox class module itself, you
will see several Subs, with names like, DIBMirrorX(). These functions will
rotate the current contents of the Image control. You have to Load the image
first via the PictureBox class's LoadImageControl function not by manually
selecting an image into the Image control's Picture property.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Y

Yaacov Klapisch

Thanks for your attention, Stephen.

Of course I had a look at the vbPictureBox Class. You have great stuff
there!
It is the first sample I looked at from your website because I saw the
rotate Text functionality.
I finaly took the LoadJpegGif sample to have the zoom in a window but there
also there is no rotation.
Unfortunately I couldn't get to figure how to rotate the image in
A2KPictureBoxVer35. When I load an image and then rotate, only the text
rotates and the image vanishes.
If you would bw so kind as to add this functionality like the Text function
it would be great!

Thanks anyway.
 
Y

Yaacov Klapisch

Thanks for the reply and sorry for responding so late.
Well... This is too much for me unless you care to explain.
This is beyond my knowlege.
I saw the Mirror functions and the Flip functions but it doesn't give me the
option to rotate.
MirrorX and Flip gives a 180 rotation but I can't set the degree.
I also found the RotateDegree property but it can be used only for the Text
Rotation function.
Is it possible to have a finction that will rotate the image in the control,
given a degree?
 

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

Similar Threads

Rotate image 2
How do I Rotate Text boxes? 13
Rotate an Image? 3
Vertical Text 1
Vertical Label 2
Help with Rotate Text 1
How to rotate an image? 3
Can you set an image to rotate via animation in ppt? 2

Top