Class NetCanvas
Implements Canvas using .NET framework GDI+ Graphics object
Inheritance
System.Object
NetCanvas
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NFX.PAL.NetFramework.dll
Syntax
public sealed class NetCanvas : DisposableObject, IPALCanvas, IDisposable
Properties
Interpolation
Declaration
public InterpolationMode Interpolation { get; set; }
Property Value
Methods
Clear(Color)
Declaration
public void Clear(Color color)
Parameters
| Type |
Name |
Description |
| System.Drawing.Color |
color |
|
CreateFont(String, Single, FontStyling, MeasureUnit)
Declaration
public IPALCanvasFont CreateFont(string name, float size, FontStyling style, MeasureUnit unit)
Parameters
Returns
CreatePen(Color, Single, PenDashStyle)
Declaration
public IPALCanvasPen CreatePen(Color color, float width, PenDashStyle style)
Parameters
| Type |
Name |
Description |
| System.Drawing.Color |
color |
|
| System.Single |
width |
|
| PenDashStyle |
style |
|
Returns
CreateSolidBrush(Color)
Declaration
public IPALCanvasBrush CreateSolidBrush(Color color)
Parameters
| Type |
Name |
Description |
| System.Drawing.Color |
color |
|
Returns
Destructor()
Declaration
protected override void Destructor()
Overrides
DrawEllipse(IPALCanvasPen, Rectangle)
Declaration
public void DrawEllipse(IPALCanvasPen pen, Rectangle rect)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.Rectangle |
rect |
|
DrawEllipse(IPALCanvasPen, RectangleF)
Declaration
public void DrawEllipse(IPALCanvasPen pen, RectangleF rect)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.RectangleF |
rect |
|
DrawImage(IPALImage, Rectangle)
Declaration
public void DrawImage(IPALImage image, Rectangle rect)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.Rectangle |
rect |
|
DrawImage(IPALImage, Rectangle, Rectangle)
Declaration
public void DrawImage(IPALImage image, Rectangle src, Rectangle dest)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.Rectangle |
src |
|
| System.Drawing.Rectangle |
dest |
|
DrawImage(IPALImage, RectangleF)
Declaration
public void DrawImage(IPALImage image, RectangleF rect)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.RectangleF |
rect |
|
DrawImage(IPALImage, RectangleF, RectangleF)
Declaration
public void DrawImage(IPALImage image, RectangleF src, RectangleF dest)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.RectangleF |
src |
|
| System.Drawing.RectangleF |
dest |
|
DrawImageUnscaled(IPALImage, Point)
Declaration
public void DrawImageUnscaled(IPALImage image, Point p)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.Point |
p |
|
DrawImageUnscaled(IPALImage, PointF)
Declaration
public void DrawImageUnscaled(IPALImage image, PointF p)
Parameters
| Type |
Name |
Description |
| IPALImage |
image |
|
| System.Drawing.PointF |
p |
|
DrawLine(IPALCanvasPen, Point, Point)
Declaration
public void DrawLine(IPALCanvasPen pen, Point p1, Point p2)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.Point |
p1 |
|
| System.Drawing.Point |
p2 |
|
DrawLine(IPALCanvasPen, PointF, PointF)
Declaration
public void DrawLine(IPALCanvasPen pen, PointF p1, PointF p2)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.PointF |
p1 |
|
| System.Drawing.PointF |
p2 |
|
DrawRectangle(IPALCanvasPen, Rectangle)
Declaration
public void DrawRectangle(IPALCanvasPen pen, Rectangle rect)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.Rectangle |
rect |
|
DrawRectangle(IPALCanvasPen, RectangleF)
Declaration
public void DrawRectangle(IPALCanvasPen pen, RectangleF rect)
Parameters
| Type |
Name |
Description |
| IPALCanvasPen |
pen |
|
| System.Drawing.RectangleF |
rect |
|
DrawString(IPALCanvasFont, IPALCanvasBrush, String, PointF)
Declaration
public void DrawString(IPALCanvasFont font, IPALCanvasBrush brush, string text, PointF p)
Parameters
FillRectangle(IPALCanvasBrush, Rectangle)
Declaration
public void FillRectangle(IPALCanvasBrush brush, Rectangle rect)
Parameters
FillRectangle(IPALCanvasBrush, RectangleF)
Declaration
public void FillRectangle(IPALCanvasBrush brush, RectangleF rect)
Parameters
MeasureString(IPALCanvasFont, String, Nullable<SizeF>)
Declaration
public SizeF MeasureString(IPALCanvasFont font, string text, SizeF? bounds)
Parameters
| Type |
Name |
Description |
| IPALCanvasFont |
font |
|
| System.String |
text |
|
| System.Nullable<System.Drawing.SizeF> |
bounds |
|
Returns
| Type |
Description |
| System.Drawing.SizeF |
|
Implements
System.IDisposable
Extension Methods