Home | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter
Loading...

Zoom and rotate in vb6

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Zoom and rotate in vb6

Postby finn » Thu Nov 08, 2007 5:24 pm

How do I zoom an bitmap picture to any size fx 175% or 25%
Rotate it 10 deg and get the result in a image box for use in a
Windowless crontrol
finn
 
Posts: 3
Joined: Thu Nov 08, 2007 11:06 am
Location: Singapore

Postby Loïc » Wed Nov 14, 2007 12:22 pm

Hi,

You can do that with the Imaging classe of the GdPicture Pro SDK:


Code: Select all
Dim oPicture As StdPicture

Call Imaging1.CreateImageFromFile("test.jpg")
Call Imaging1.ScaleImage(175, InterpolationModeHighQuality)
Call Imaging1.RotateAngle(10)
Set oPicture = Imaging1.GetPicture
Imaging1.CloseNativeImage



Regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4226
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 2 guests