InterfaceStepAOIHighResolutionMemoryExport(MemoryStream, IODBLayer, RectangleD, Int32, Int32, Boolean, AOIMatrixSize, Boolean, Boolean, Color, Boolean, 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.

Definition

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

Parameters

ms  MemoryStream
Memorystream where data is written to
Layer  IODBLayer
Layer to draw
ClippingRectangle  RectangleD
the relevante area
DPI  Int32
dots per inch
OverSampling  Int32
Multiplicator for internal image generation, will be downsampled afterwards to reach DPI (Valid Values=1-8)
IgnoreOverSampling4LinesArc  Boolean
When Oversampling is used, and this parameter is true, then Lines/Arcs will be drawn without oversampling => more consistent track thickness
InternalMatrixSize  AOIMatrixSize
middle for a 32-bit system with less then 4 GB RAM
UseMultiThreading  Boolean
Use multiple Threads
drawOnlySelected  Boolean
Export only selected object to the Bitmap
BackColor  Color
Background Color
AllowSpecialObjectColor  Boolean
If false, Objects with special color are drawn with the layer 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