Zoom and rotate in vb6

Discussions about document viewing.
Post Reply
finn
Posts: 3
Joined: Thu Nov 08, 2007 11:06 am
Location: Singapore

Zoom and rotate in vb6

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest