| Top Previous Next |
|
The ImageSetting property specifies the properties of the image.
Syntax
Remarks
The ImageSettings property defines the characteristics of the image being rendered. It defines properties like Autosize, Center, ImagePixelFormat, Inclination, IsFrame, JPEGQuality, KeepAspectRatio, OutputImageFormat, SourceDPI, Stretch, and Transparent.
Requirements
Header: gtimagesettingsx.h
Example Code
[VC++] m_Engine.SetFileName("Sample"); m_Engine.BeginDoc();
// Set the pen properties. m_Engine.SetPenColor(RGB(255, 0, 0)); m_Engine.SetPenWidth(2);
// Set the image characteristics. CgtImageSettingsX imgSettings = m_Engine.GetImageSettings(); imgSettings.SetIsFrame(true); imgSettings.SetStretch(true); imgSettings.SetTransparent(true); imgSettings.SetKeepAspectRatio(true);
// Draw the image. m_Engine.DrawImageXY(2, 2, m_Image.GetPicture().GetHandle(), itBMP);
m_Engine.EndDoc();
[VB] With gtEngineX1 .FileName = "Sample" .BeginDoc
' Set the pen properties. .PenColor = RGB(255, 0, 0) .PenWidth = 2
' Set the image characteristics. With .ImageSettings .IsFrame = True .Stretch = True .Transparent = True .KeepAspectRatio = True End With
' Draw the image. .DrawImageR 1, 1, 4, 4, Image1.Picture.Handle, itBMP .EndDoc End With
See Also
|