Table of Contents

Class NotImplementedGraphics

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

Drawing context which raises NotImplementedException exeption on every method or property call.

public class NotImplementedGraphics : Graphics, IBaseObject, IDisposableObject, IGraphics, IDisposable
Inheritance
NotImplementedGraphics
Implements
Extension Methods

Properties

Clip

Gets or sets clipping region.

InterpolationMode

Gets or sets the interpolation mode associated with this Graphics.

IsOk

Returns true if the object is ok to use.

NativeObject

Gets native drawing context.

Transform

Gets or sets a copy of the geometric world transformation for this Graphics.

Methods

Blit(PointD, SizeD, Graphics, PointD, RasterOperationMode, bool, PointD?, GraphicsUnit)

Copy from a source Graphics to this graphics. With this method you can specify the destination coordinates and the size of area to copy which will be the same for both the source and target. If you need to apply scaling while copying, use StretchBlit(PointD, SizeD, Graphics, PointD, SizeD, RasterOperationMode, bool, PointD?, GraphicsUnit). Sizes and positions are specified in pixels.

Circle(Pen, Brush, PointD, double)

Calls FillCircle(Brush, PointD, double) and than DrawCircle(Pen, PointD, double).

DestroyClippingRegion()

Destroys the current clipping region so that none of the DC is clipped.

DrawArc(Pen, PointD, double, double, double)

Draws an arc representing a portion of a circle specified by a center PointD and a radius.

DrawBezier(Pen, PointD, PointD, PointD, PointD)

Draws a Bezier spline defined by four PointD structures.

DrawBeziers(Pen, PointD[])

Draws a series of Bezier splines from an array of PointD structures.

DrawCircle(Pen, PointD, double)

Draws an circle specified by a center PointD and a radius.

DrawEllipse(Pen, RectD)

Draws an ellipse defined by a bounding RectD.

DrawImage(Image, PointD)

Draws the specified Image, using its original size, at the specified location.

DrawImage(Image, RectD)

Draws an image into the region defined by the specified RectD.

DrawImage(Image, RectD, RectD)

Draws the specified portion of the image into the region defined by the specified RectD.

DrawImage(Image, RectD, RectD, GraphicsUnit)

Draws the specified portion of the image into the region defined by the specified RectD.

DrawLabel(string, Font, Color, Color, Image?, RectD, GenericAlignment, int)

Draws text with the specified font, background and foreground colors, optional image, alignment and underlined mnemonic character.

DrawLine(Pen, PointD, PointD)

Draws a line connecting two points.

DrawLines(Pen, PointD[])

Draws a series of line segments that connect an array of PointD structures.

DrawPath(Pen, GraphicsPath)

Draws a GraphicsPath.

DrawPie(Pen, PointD, double, double, double)

Draws an outline of a pie section defined by a circle specified by a center PointD and a radius.

DrawPoint(Pen, double, double)

Draws point with the specified color.

DrawPolygon(Pen, PointD[])

Draws a polygon defined by an array of PointD structures.

DrawRectangle(Pen, RectD)

Draws a rectangle specified by a RectD structure.

DrawRectangles(Pen, RectD[])

Draws a series of rectangles specified by RectD structures.

DrawRotatedText(string, PointD, Font, Color, Color, double, GraphicsUnit)

Draws the text rotated by angle degrees (positive angles are counterclockwise; the full angle is 360 degrees) with the specified font, background and foreground colors.

DrawRoundedRectangle(Pen, RectD, double)

Draws a rounded rectangle specified by a RectD and a corner radius.

DrawText(string, Font, Brush, PointD)

Draws the specified text string at the specified location with the specified Brush and Font objects.

DrawText(string, Font, Brush, RectD)

Draws the specified text string at the specified location with the specified Brush and Font objects.

DrawText(string, PointD, Font, Color, Color)

Draws text with the specified font, background and foreground colors.

Ellipse(Pen, Brush, RectD)

Calls FillEllipse(Brush, RectD) and than DrawEllipse(Pen, RectD).

FillCircle(Brush, PointD, double)

Fills the interior of a circle specified by a center PointD and a radius.

FillEllipse(Brush, RectD)

Fills the interior of an ellipse defined by a bounding rectangle specified by a RectD structure.

FillPath(Brush, GraphicsPath)

Fills the interior of a GraphicsPath.

FillPie(Brush, PointD, double, double, double)

Fills the interior of a pie section defined by a circle specified by a center PointD and a radius.

FillPolygon(Brush, PointD[], FillMode)

Fills the interior of a polygon defined by an array of PointD structures.

FillRectangle(Brush, RectD)

Fills the interior of a rectangle specified by a RectD structure. Rectangle is specified in device-independent units.

FillRectangle(Brush, RectD, GraphicsUnit)

Fills the interior of a rectangle specified by a RectD structure. Rectangle is specified in device-independent units.

FillRectangles(Brush, RectD[])

Fills a series of rectangles specified by RectD structures.

FillRoundedRectangle(Brush, RectD, double)

Fills the interior of a rounded rectangle specified by a RectD and a corner radius.

FloodFill(Brush, PointD)

Flood fills the drawing surface starting from the given point, using the given brush.

GetClippingBox()

Gets the rectangle surrounding the current clipping region. If no clipping region is set this function returns the extent of the device context.

GetDPI()

Returns the DPI of the display used by this object.

GetTextExtent(string, Font)

Gets the dimensions of the string using the specified font.

GetTextExtent(string, Font, IControl?)

Gets the dimensions of the string using the specified font.

Path(Pen, Brush, GraphicsPath)

Calls FillPath(Brush, GraphicsPath) and than DrawPath(Pen, GraphicsPath).

Pie(Pen, Brush, PointD, double, double, double)

Calls FillPie(Brush, PointD, double, double, double) and than DrawPie(Pen, PointD, double, double, double).

Polygon(Pen, Brush, PointD[], FillMode)

Calls FillPolygon(Brush, PointD[], FillMode) and than DrawPolygon(Pen, PointD[]).

Rectangle(Pen, Brush, RectD)

Calls FillRectangle(Brush, RectD) and than DrawRectangle(Pen, RectD).

RoundedRectangle(Pen, Brush, RectD, double)

Calls FillRoundedRectangle(Brush, RectD, double) and than DrawRoundedRectangle(Pen, RectD, double).

SetClippingRegion(RectD)

Sets the clipping region for this device context to the intersection of the given region described by the parameters of this method and the previously set clipping region.

SetPixel(PointD, Pen)

Sets the color of the specified pixel in this Graphics.

SetPixel(double, double, Color)

Sets the color of the specified pixel in this Graphics.

SetPixel(double, double, Pen)

Sets the color of the specified pixel in this Graphics.

StretchBlit(PointD, SizeD, Graphics, PointD, SizeD, RasterOperationMode, bool, PointD?, GraphicsUnit)

Copies from a source Graphics to this graphics possibly changing the scale. Unlike Blit(PointD, SizeD, Graphics, PointD, RasterOperationMode, bool, PointD?, GraphicsUnit), this method allows specifying different source and destination region sizes, meaning that it can stretch or shrink it while copying. The meaning of its other parameters is the same as with Blit(PointD, SizeD, Graphics, PointD, RasterOperationMode, bool, PointD?, GraphicsUnit). Sizes and positions are specified in pixels.