Table of Contents

CadRenderImage

from OpenCAD2D import CadRenderImage

class CadRenderImage(System.Object) ยท CadRenderImage in the .NET reference

The pixels of a picture CadRender.Draw made: rows from the top, three bytes a pixel, red, green and blue, with no alpha. A picture 1 600 by 960 pixels holds 4 608 000 bytes.

Properties and fields

Height

.NET

@property
def Height(self) -> int

Gets the height of the picture in pixels.

Rgb

.NET

@property
def Rgb(self) -> System.Array[int]

Gets the pixels, CadRenderImage.Height rows of CadRenderImage.Width pixels from the top, each a red, a green and a blue byte: the length is 3 times the width times the height.

Width

.NET

@property
def Width(self) -> int

Gets the width of the picture in pixels.