Sharpen

The Sharpen method sharpens content the whole image or rectangular area in the active imagespace.

Sharpen [vRadius][, vX][, xY][, vWidth][, vHeight]

Parameters

vRadius
Optional. Specifies sharpen radius, pixels. Default value is 3.

vX
Optional. Specifies left coordinate of sharpen area on the imagespace. Default value is 0.

vY
Optional. Specifies top coordinate of sharpen area on the imagespace. Default value is 0.

vWidth
Optional. Specifies width of sharpen area on the imagespace. Default value is imagespace width.

vHeight
Optional. Specifies height of sharpen area on the imagespace. Default value is imagespace height.

Example

Set g = CreateObject("shotgraph.image")
file_name = "c:\files\image.jpg"
g.GetFileDimensions file_name,xsize,ysize
g.CreateImage xsize,ysize,256
g.ReadImage file_name,palette,0,0
g.Sharpen
g.JpegImage 95,0,"c:\newimage.gif"