Click or drag to resize
CGUIRenderPattern Method
- Render a pattern.

Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  
License: Available to anyone.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Renders a Geosoft pattern to a Windows DC.
Syntax
public static void RenderPattern(
	CGXNETCore gxNetShared,
	IntPtr hdc,
	int left,
	int bottom,
	int right,
	int top,
	int pat,
	double size,
	int thick,
	double dense,
	int col,
	int back_col,
	int is_enabled,
	int is_button,
	int is_selected
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
hdc
Type: SystemIntPtr
DC handle
left
Type: SystemInt32
Left value of the render rect in Windows coordinates (bottom>top)
bottom
Type: SystemInt32
Bottom value
right
Type: SystemInt32
Right value
top
Type: SystemInt32
Top value
pat
Type: SystemInt32
Pattern number
size
Type: SystemDouble
Pattern size, // input <define>GS_R8DM</define> to use default
thick
Type: SystemInt32
Pattern thick (0-100) // input <define>GS_S4DM</define> to use default
dense
Type: SystemDouble
Pattern density, // input <define>GS_R8DM</define> to use default
col
Type: SystemInt32
Pattern color // input <define>GS_S4DM</define> to use default
back_col
Type: SystemInt32
Pattern background color // input <define>GS_S4DM</define> to use default; can be <define>C_TRANSPARENT</define>
is_enabled
Type: SystemInt32
Is this window enabled?
is_button
Type: SystemInt32
Is this a button?
is_selected
Type: SystemInt32
Is this window selected?
See Also