IStepAOIHighResolutionMemoryExport(MemoryStream, InterfaceODBLayer, 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.
Namespace: PCBI.AutomationAssembly: PCB-Investigator (in PCB-Investigator.exe) Version: 0
public bool AOIHighResolutionMemoryExport(
ref MemoryStream ms,
InterfaceODBLayer 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
)
Public Function AOIHighResolutionMemoryExport (
ByRef ms As MemoryStream,
Layer As InterfaceODBLayer,
ClippingRectangle As RectangleD,
DPI As Integer,
OverSampling As Integer,
IgnoreOverSampling4LinesArc As Boolean,
InternalMatrixSize As AOIMatrixSize,
UseMultiThreading As Boolean,
drawOnlySelected As Boolean,
BackColor As Color,
AllowSpecialObjectColor As Boolean,
<OutAttribute> ByRef widthPx As Integer,
<OutAttribute> ByRef heightPx As Integer,
Optional onProgressChanged As IPCBIWindowProgressChanged = Nothing
) As Boolean
public:
virtual bool AOIHighResolutionMemoryExport(
MemoryStream^% ms,
InterfaceODBLayer^ Layer,
RectangleD ClippingRectangle,
int DPI,
int OverSampling,
bool IgnoreOverSampling4LinesArc,
AOIMatrixSize InternalMatrixSize,
bool UseMultiThreading,
bool drawOnlySelected,
Color BackColor,
bool AllowSpecialObjectColor,
[OutAttribute] int% widthPx,
[OutAttribute] int% heightPx,
IPCBIWindowProgressChanged^ onProgressChanged = nullptr
) sealed
abstract AOIHighResolutionMemoryExport :
ms : MemoryStream byref *
Layer : InterfaceODBLayer *
ClippingRectangle : RectangleD *
DPI : int *
OverSampling : int *
IgnoreOverSampling4LinesArc : bool *
InternalMatrixSize : AOIMatrixSize *
UseMultiThreading : bool *
drawOnlySelected : bool *
BackColor : Color *
AllowSpecialObjectColor : bool *
widthPx : int byref *
heightPx : int byref *
?onProgressChanged : IPCBIWindowProgressChanged
(* Defaults:
let _onProgressChanged = defaultArg onProgressChanged null
*)
-> bool
override AOIHighResolutionMemoryExport :
ms : MemoryStream byref *
Layer : InterfaceODBLayer *
ClippingRectangle : RectangleD *
DPI : int *
OverSampling : int *
IgnoreOverSampling4LinesArc : bool *
InternalMatrixSize : AOIMatrixSize *
UseMultiThreading : bool *
drawOnlySelected : bool *
BackColor : Color *
AllowSpecialObjectColor : bool *
widthPx : int byref *
heightPx : int byref *
?onProgressChanged : IPCBIWindowProgressChanged
(* Defaults:
let _onProgressChanged = defaultArg onProgressChanged null
*)
-> bool
- ms MemoryStream
- Memorystream where data is written to
- Layer InterfaceODBLayer
- 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
BooleanTrue if its work, else check the IAutomation.ErrorLog
InterfaceStepAOIHighResolutionMemoryExport(MemoryStream, InterfaceODBLayer, RectangleD, Int32, Int32, Boolean, AOIMatrixSize, Boolean, Boolean, Color, Boolean, Int32, Int32, IPCBIWindowProgressChanged)