Rotate an Image?

  • Thread starter Thread starter jayglass
  • Start date Start date
J

jayglass

Does anyone know if it's possible to have the ability to rotate an imag
when displaying an image on a form. I am pulling the images from th
network. Depending on what record is selected, a different image i
displayed. The problem is some of the images where scanned as portrai
and some a landscape. There must be some sort of control I can use
just don't know what it is.

THanks in advance
 
AFAIK, no. Access can display images from many different file types, you
would need image rotation capability in all of the different image filters.
Best is to use a general image handling program like irfanview (
www.irfanview.com ) to rotate all the images first, then set links to them
for Access to use.

You can also check Stephan Lebans site for more info about image handling.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
You'd only need to change one line of the code in one of the current
rotate methods of my VBPictureBox class. Look at the 4 current methods
that flip/rotate the loaded Image.
http://www.lebans.com/imageclass.htm
ImageClass has been replaced by the PictureBoxA97 project. A standard
Image control is wrapped within a class to allow the control to resemble
the standard Visual Basic PictureBox control. Simple drawing methods are
directly supported as is Text output with rotation. A handle to a Device
Context is exposed to allow the developer to use the full range of
Graphic API's. Also supports Screen Grabs, Copy to Clipboard and Save
Image control to a disk Bitmap file. Here is the Access 2000 version,
PictureBoxA2K.zip

Bug Feb. 24/2002 Just noticed Bitmaps must not contain color tables.
Will fix this in next release.

Bug Fix Oct.11 - It appears the Form was corrupt in the Oct 1 Update. I
decompiled the project and everything seems fine now. Also the A97
version contains a PSet method not in the A2K version.

Version 3.5

Use NULL Pen when drawing Rectangles so no border is seen. A2K version
only.

Version 3.2

Added support to flip Image Vertically and Horizontally with mirror
option.

--

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