Drawing3d documented Class Library

FeaturesW32 Members

FeaturesW32 overview

Public Static (Shared) Fields

LoadedFonts Contains all loaded fonts. GetValueList holds FeaturesW32.FontItem.
PFD_DEPTH_DONTCARE The requested pixel format can either have or not have a depth buffer. To select a pixel format without a depth buffer, you must specify this flag. The requested pixel format can be with or without a depth buffer. Otherwise, only pixel formats with a depth buffer are considered.
PFD_DOUBLEBUFFER The buffer is double-buffered. This flag and PFD_SUPPORT_GDI are mutually exclusive in the current generic implementation.
PFD_DOUBLEBUFFER_DONTCARE The requested pixel format can be either single- or double-buffered.
PFD_DRAW_TO_BITMAP The buffer can draw to a memory bitmap.
PFD_DRAW_TO_WINDOW The buffer can draw to a window or device surface.
PFD_GENERIC_ACCELERATED The pixel format is supported by a device driver that accelerates the generic implementation. If this flag is clear and the PFD_GENERIC_FORMAT flag is set, the pixel format is supported by the generic implementation only.
PFD_GENERIC_FORMAT The pixel format is supported by the GDI software implementation, which is also known as the generic implementation. If this bit is clear, the pixel format is supported by a device driver or hardware.
PFD_MAIN_PLANE The layer is the main plane.
PFD_NEED_PALETTE The buffer uses RGBA pixels on a palette-managed device. A logical palette is required to achieve the best results for this pixel type. Colors in the palette should be specified according to the values of the cRedBits, cRedShift, cGreenBits, cGreenShift, cBluebits, and cBlueShift members. The palette should be created and realized in the device context before calling wglMakeCurrent.
PFD_NEED_SYSTEM_PALETTE Defined in the pixel format descriptors of hardware that supports one hardware palette in 256-color mode only. For such systems to use hardware acceleration, the hardware palette must be in a fixed order (for example, 3-3-2) when in RGBA mode or must match the logical palette when in color-index mode. This flag is not set in the generic pixel formats.
PFD_OVERLAY_PLANE The layer is the overlay plane.
PFD_STEREO The buffer is stereoscopic. This flag is not supported in the current generic implementation.
PFD_STEREO_DONTCARE The requested pixel format can be either monoscopic or stereoscopic.
PFD_SUPPORT_DIRECTDRAW The buffer supports DirectDraw drawing.
PFD_SUPPORT_GDI The buffer supports GDI drawing. This flag and PFD_DOUBLEBUFFER are mutually exclusive in the current generic implementation.
PFD_SUPPORT_OPENGL The buffer supports OpenGL drawing.
PFD_SWAP_COPY Specifies the content of the back buffer in the double-buffered main color plane following a buffer swap. Swapping the color buffers causes the content of the back buffer to be copied to the front buffer. The content of the back buffer is not affected by the swap. PFD_SWAP_COPY is a hint only and might not be provided by a driver.
PFD_SWAP_EXCHANGE Specifies the content of the back buffer in the double-buffered main color plane following a buffer swap. Swapping the color buffers causes the exchange of the back buffer's content with the front buffer's content. Following the swap, the back buffer's content contains the front buffer's content before the swap. PFD_SWAP_EXCHANGE is a hint only and might not be provided by a driver.
PFD_SWAP_LAYER_BUFFERS Indicates whether a device can swap individual layer planes with pixel formats that include double-buffered overlay or underlay planes. Otherwise all layer planes are swapped together as a group. When this flag is set, wglSwapLayerBuffers is supported.
PFD_TYPE_COLORINDEX Color-index pixels. Each pixel uses a color-index value.
PFD_TYPE_RGBA RGBA pixels. Each pixel has four components in this order: red, green, blue, and alpha.
PFD_UNDERLAY_PLANE The layer is the underlay plane.
WGL_FONT_LINES Fonts with line segments.
WGL_FONT_POLYGONS Fonts with polygons.
WGL_SWAP_MAIN_PLANE Swaps the front and back buffers of the main plane.
WGL_SWAP_OVERLAY1 Swaps the front and back buffers of the overlay plane 1.
WGL_SWAP_OVERLAY10 Swaps the front and back buffers of the overlay plane 10.
WGL_SWAP_OVERLAY11 Swaps the front and back buffers of the overlay plane 11.
WGL_SWAP_OVERLAY12 Swaps the front and back buffers of the overlay plane 12.
WGL_SWAP_OVERLAY13 Swaps the front and back buffers of the overlay plane 13.
WGL_SWAP_OVERLAY14 Swaps the front and back buffers of the overlay plane 14.
WGL_SWAP_OVERLAY15 Swaps the front and back buffers of the overlay plane 15.
WGL_SWAP_OVERLAY2 Swaps the front and back buffers of the overlay plane 2.
WGL_SWAP_OVERLAY3 Swaps the front and back buffers of the overlay plane 3.
WGL_SWAP_OVERLAY4 Swaps the front and back buffers of the overlay plane 4.
WGL_SWAP_OVERLAY5 Swaps the front and back buffers of the overlay plane 5.
WGL_SWAP_OVERLAY6 Swaps the front and back buffers of the overlay plane 6.
WGL_SWAP_OVERLAY7 Swaps the front and back buffers of the overlay plane 7.
WGL_SWAP_OVERLAY8 Swaps the front and back buffers of the overlay plane 8.
WGL_SWAP_OVERLAY9 Swaps the front and back buffers of the overlay plane 9.
WGL_SWAP_UNDERLAY1 Swaps the front and back buffers of the underlay plane 1.
WGL_SWAP_UNDERLAY10 Swaps the front and back buffers of the underlay plane 10.
WGL_SWAP_UNDERLAY11 Swaps the front and back buffers of the underlay plane 11.
WGL_SWAP_UNDERLAY12 Swaps the front and back buffers of the underlay plane 12.
WGL_SWAP_UNDERLAY13 Swaps the front and back buffers of the underlay plane 13.
WGL_SWAP_UNDERLAY14 Swaps the front and back buffers of the underlay plane 14.
WGL_SWAP_UNDERLAY15 Swaps the front and back buffers of the underlay plane 15.
WGL_SWAP_UNDERLAY2 Swaps the front and back buffers of the underlay plane 2.
WGL_SWAP_UNDERLAY3 Swaps the front and back buffers of the underlay plane 3.
WGL_SWAP_UNDERLAY4 Swaps the front and back buffers of the underlay plane 4.
WGL_SWAP_UNDERLAY5 Swaps the front and back buffers of the underlay plane 5.
WGL_SWAP_UNDERLAY6 Swaps the front and back buffers of the underlay plane 6.
WGL_SWAP_UNDERLAY7 Swaps the front and back buffers of the underlay plane 7.
WGL_SWAP_UNDERLAY8 Swaps the front and back buffers of the underlay plane 8.
WGL_SWAP_UNDERLAY9 Swaps the front and back buffers of the underlay plane 9.

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.
CreateFont 
DeleteObject 
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 Constructors

FeaturesW32 Constructor Initializes a new instance of the FeaturesW32 class.

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