Drawing3d documented Class Library

FeaturesW32 Methods

The methods of the FeaturesW32 class are listed below. For a complete list of FeaturesW32 class members, see the FeaturesW32 Members topic.

Public Static (Shared) Methods

BeginPath The BeginPath function opens a path bracket in the specified device context.
ChoosePixelFormat The ChoosePixelFormat function attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.
EndPath The EndPath function closes a path bracket and selects the path defined by the bracket into the specified device context.
FindFont Find the index of a Font in the LoadedFonts
FixedToNumber Converts a FeaturesW32.FIXED-number to a double.
FlattenPath The FlattenPath function transforms any curves in the path that is selected into the current device context (DC), turning each curve into a sequence of lines.
GetDC The GetDC function retrieves a handle to a display device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The GetDCEx function is an extension to GetDC, which gives an application more control over how and whether clipping occurs in the client area.
GetGlyphOutlineW Get the outline of a char.
GetOutLineOverloaded. The method retrieves a Loca, which holds the curves of a character in the font style, given by the parameter 'Font'. CellIncx gets the distance to a following next character.
double CellIncX;
Font F = new Font(FontName, 30);
// set attributes
Font.Style = System.Drawing.FontStyle.Bold; // for example
Loca L = GetOutLine( F , 'S', out CellIncX);
device.DrawPolyPolyCurve(L); // draws the character to the device

GetPathOverloaded. The GetPath function retrieves the coordinates defining the endpoints of lines and the control points of curves found in the path that is selected into the specified device context.
GetTextExtentPoint32 Call this member function to compute the width and height of a line of text using the current font to determine the dimensions.
GetTextMetrics Gets the Matrixs of a font
LoadFont Loads a font and stores a FeaturesW32.FontItem in the LoadedFonts-list.
LoadModernFont Loads a font, which is a stroke font like "modern"
ReleaseDC The ReleaseDC function releases a device context (DC), freeing it for use by other applications. The effect of the ReleaseDC function depends on the type of DC. It frees only common and window DCs. It has no effect on class or private DCs.
SelectObjectOverloaded. This function selects an object into a specified device context. The new object replaces the previous object of the same type.
SetPixelFormat The SetPixelFormat function sets the pixel format of the specified device context to the format specified by the iPixelFormat index.
SwapBuffers Swaps the double buffer for the frame buffer.
TextOut The TextOut function writes a character string at the specified location, using the currently selected font, background color, and text color.
wglCreateContext The wglCreateContext function creates a new OpenGL rendering context, which is suitable for drawing on the device referenced by deviceContext. The rendering context has the same pixel format as the device context.
wglDeleteContext The wglDeleteContext function deletes a specified OpenGL rendering context.
wglGetCurrentContext The wglGetCurrentContext function obtains a handle to the current OpenGL rendering context of the calling thread.
wglGetProcAddress The wglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.
wglMakeCurrent The wglMakeCurrent function makes a specified OpenGL rendering context the calling thread's current rendering context. All subsequent OpenGL calls made by the thread are drawn on the device identified by deviceContext. You can also use wglMakeCurrent to change the calling thread's current rendering context so it's no longer current.
wglShareLists The wglShareLists function enables multiple OpenGL rendering contexts to share a single display-list space.
wglSwapBuffers Calls wglSwapLayerBuffers with planes=WGL_SWAP_MAIN_PLANE.
wglSwapLayerBuffers The wglSwapLayerBuffers function swaps the front and back buffers in the overlay, underlay, and main planes of the window referenced by a specified device context.
wglUseFontBitmaps The wglUseFontBitmaps function creates a set of bitmap display lists for use in the current OpenGL rendering context. The set of bitmap display lists is based on the glyphs in the currently selected font in the device context. You can then use bitmaps to draw characters in an OpenGL image. The wglUseFontBitmaps function creates count display lists, one for each of a run of count glyphs that begins with the first glyph in the deviceContext parameter's selected fonts.
wglUseFontOutlines The wglUseFontOutlines function creates a set of display lists, one for each glyph of the currently selected outline font of a device context, for use with the current rendering context. The display lists are used to draw 3-D characters of TrueType fonts. Each display list describes a glyph outline in floating-point coordinates. The run of glyphs begins with the first glyph of the font of the specified device context. The em square size of the font, the notional grid size of the original font outline from which the font is fitted, is mapped to 1.0 in the x- and y-coordinates in the display lists. The extrusion parameter sets how much depth the font has in the z direction. The glyphMetrics parameter returns a FeaturesW32.GLYPHMETRICSFLOAT structure that contains information about the placement and orientation of each glyph in a character cell.

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

See Also

FeaturesW32 Class | Drawing3d.OS.Windows Namespace