ImageGear Professional for Windows ActiveX
DrawFrame Method

Description:

Adds a frame (block of solid color on all four sides) to an image.

If Mode is set to IG_DRAW_FRAME_EXPAND, the width and the height of the image will be expanded by 2 times the width of the frame. If Mode is set to IG_DRAW_FRAME_OVERWRITE, all four sides of the image will be overwritten by the frame, so that the resulting image has the same width and height as the original image, but the edges of the image are "covered" by the frame.

Syntax:

      DrawFrame (pPage As IGPage, frameThickness As Long, Mode As
enumDrawFrame)

Parameters:

Name Description
pPage Reference to IGPage Object to despeckle.
frameThickness The width of the frame, in pixels.
Mode Tells ImageGear which IG_DRAW_FRAME_ setting to use.

Return Value:

N/A

Bits Per Pixel:

1, 4, 8, 9-16-bit gray level, 24

Sample:

Image Processing and Effects

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback