getOpaqueBoundsInPixels2 method

getOpaqueBoundsInPixels2(scale, dpi)

Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.

getOpaqueBoundsInPixels2(scale: number, dpi: number)
ParameterTypeDescription
scalenumberThe zoom factor (1.0 is 100%).
dpinumberThe resolution to convert from points to pixels (dots per inch).

Remarks

This method converts Aspose.Words.Rendering.NodeRendererBase.OpaqueBoundsInPoints into rectangle in pixels and it is useful when you want to create a bitmap for rendering the shape with only opaque part of the shape.

Returns

The opaque rectangle of the shape in pixels.

getOpaqueBoundsInPixels2(scale, horizontalDpi, verticalDpi)

Calculates the opaque bounds of the shape in pixels for a specified zoom factor and resolution.

getOpaqueBoundsInPixels2(scale: number, horizontalDpi: number, verticalDpi: number)
ParameterTypeDescription
scalenumberThe zoom factor (1.0 is 100%).
horizontalDpinumberThe horizontal resolution to convert from points to pixels (dots per inch).
verticalDpinumberThe vertical resolution to convert from points to pixels (dots per inch).

Remarks

This method converts Aspose.Words.Rendering.NodeRendererBase.OpaqueBoundsInPoints into rectangle in pixels and it is useful when you want to create a bitmap for rendering the shape with only opaque part of the shape.

Returns

The opaque rectangle of the shape in pixels.

See Also