InterfaceStepAOIHighResolutionMemoryExport(MemoryStream, InterfaceCMPLayer, RectangleD, Int32, Boolean, Color, Int32, Int32, IPCBIWindowProgressChanged) Method

A seperate licence is necessary to use AOI! Fills the MemoryStream with rgb image data (3 bytes/pixel). Layer-Color is used. Components are drawn with a filled body, without pins and without any label

Definition

Namespace: PCBI.Automation.Interfaces
Assembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
C#
bool AOIHighResolutionMemoryExport(
	ref MemoryStream ms,
	InterfaceCMPLayer Layer,
	RectangleD ClippingRectangle,
	int DPI,
	bool drawOnlySelected,
	Color BackColor,
	out int widthPx,
	out int heightPx,
	IPCBIWindowProgressChanged onProgressChanged = null
)

Parameters

ms  MemoryStream
Memorystream where data is written to
Layer  InterfaceCMPLayer
Layer to draw
ClippingRectangle  RectangleD
the relevante area
DPI  Int32
dots per inch
drawOnlySelected  Boolean
Export only selected object to the Bitmap
BackColor  Color
Background Color
widthPx  Int32
out Width of image in Pixel
heightPx  Int32
out Height of image in Pixel
onProgressChanged  IPCBIWindowProgressChanged  (Optional)
Function Pointer to get current prozess state in PerCent

Return Value

Boolean
True if its work, else check the IAutomation.ErrorLog

See Also