DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

GraphicCrop- Crop the image to the chosen size

Crop the image to the specified coordinates and size.

- GraphicCrop(X,Y,W,H)

Parameters:

- (int) X: horizontal starting coordinate;

- (int) Y: vertical starting coordinate;

- (int) W: width in points;

- (int) H: height in points.

Description:

Use GraphicCrop to crop part of the image to the chosen coordinates and size. Cropping starts at the X Y coordinates, the trimmed frame is the W H size. The instruction will reduce the size of the graph according to the specified width and height.

Examples:

Set the graphics area to 1900 x 1200 points

GraphicSize(1900,1200)

// ... other drawing instructions ...

// Cropping the image from the coordinate of 125 200

GraphicCrop(125,200,640,480)

// The graph will now have the size 640 x 480, according to the cropping made