| Top Previous Next |
|
The Frame property specifies the properties of the frame used for the graphic.
Syntax
Remarks
The Frame property is used to specify the characteristics of the frame used while rendering images. This property will come into effect only if "IsFrame" property in ImageSettings is set to true.
Requirements
Header: gtframex.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);
// Enable the frame and specify borders. m_Engine.GetImageSettings().SetIsFrame(true); m_Engine.GetFrame().SetIsLeft(false); m_Engine.GetFrame().SetIsRight(false); 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
' Enable frame and specify borders. .ImageSettings.IsFrame = True .Frame.IsLeft = False .Frame.IsRight = False .DrawImageXY 3, 3, Image1.Picture.Handle, itBMP
.EndDoc End With
See Also
|