This method draws the border of the specified rectangle in the designated object.

[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->FrameRect(NativeUInt DeviceValue, int ALeft, int ATop, int ARight, int ABottom, TVIkOutPutDeviceMode DeviceMode)
[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->FrameRect(NativeUInt DeviceValue, const TRect &ARect; TVIkOutPutDeviceMode DeviceMode)
[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->FrameRect(void * DeviceValue, int ALeft, int ATop, int ARight, int ABottom, TVIkOutPutDeviceMode DeviceMode)
[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->FrameRect(void * DeviceValue, const TRect &ARect; TVIkOutPutDeviceMode DeviceMode)
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.FrameRect(DeviceValue: THandle; ALeft: Integer; ATop: Integer; ARight: Integer; ABottom: Integer; DeviceMode: TVIkOutPutDeviceMode)
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.FrameRect(DeviceValue: THandle; const ARect: TRect; DeviceMode: TVIkOutPutDeviceMode)
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.FrameRect(DeviceValue: Pointer; ALeft: Integer; ATop: Integer; ARight: Integer; ABottom: Integer; DeviceMode: TVIkOutPutDeviceMode)
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.FrameRect(DeviceValue: Pointer; const ARect: TRect; DeviceMode: TVIkOutPutDeviceMode)

[TVIkOutPutDeviceMode Type]

Unit
     IkInit

type
     TVIkOutPutDeviceMode = (vikScreen, vikPrinter, vikMemoryHandle);

Parameters

Name Explanation
DeviceValue The device context or the raster image memory handle depending on the DeviceMode parameter
ALeft, ATop The x, y coordinates of the top left corner of the rectangle
ARight, ABottom The x, y coordinates of the bottom right corner of the rectangle
ARect The x, y coordinates of the rectangle
DeviceMode If vikScreen, then the output will be drawn in pixel units. If vikPrinter, the output will be drawn in 0.1mm units. If vikMemoryHandle, the output will be drawn (in pixel units) to the image data according to the DeviceValue parameter

Use either ALeft, ATop, ARight, ABottom or ARect.

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The FrameRect method draws the border of the specified rectangle in the designated object. The rectangle is specified by the left, top, right, and bottom parameters and drawn using the value of the BrushStyle property. The area inside the border of the rectangle will not be filled. (The designated object can be the screen, printer, or image data)

To use this method the BrushStyle, BrushColor, Transparent, and BackColor properties must be set. The BackColor property is enabled when the Transparent property is False and the hatch pattern brush is used. With the FrameRect method, when the Transparent property is True and a hatch pattern is selected, the spaces between the lines will be filled with the default color and will NOT be transparent. To make the space between the lines of the hatch pattern transparent, please use the Rectangle method instead.

If the DeviceMode parameter is vikScreen or vikMemoryHandle, then the ALeft, ATop, ARight, ABottom, (or ARect), X1, Y1, X2, Y2 parameters are in pixel units.

If the DeviceMode parameter is vikPrinter, then the ALeft, ATop, ARight, ABottom, (or ARect), X1, Y1, X2, Y2 parameters are in 0.1mm units.

Differences between the ImageKit7/8/9/10

In VCL the constants contain a "v". In ActiveX, the constants are: ikScreen, ikPrinter, ikMemoryHandle.
Methods that pass a TRect type have been added.

The ImageKit10 VCL is a product created by Newtone Corporation