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: Azos.Platform.NetFramework.dll
public sealed class NetCanvas : DisposableObject, IPALCanvas, IDisposable
Properties
Declaration
public InterpolationMode Interpolation { get; set; }
Property Value
Methods
Declaration
public void Clear(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Declaration
public IPALCanvasFont CreateFont(string name, float size, FontStyling style, MeasureUnit unit)
Parameters
Returns
Declaration
public IPALCanvasPen CreatePen(Color color, float width, PenDashStyle style)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
System.Single |
width |
|
PenDashStyle |
style |
|
Returns
Declaration
public IPALCanvasBrush CreateSolidBrush(Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Color |
color |
|
Returns
Declaration
protected override void Destructor()
Overrides
Declaration
public void DrawEllipse(IPALCanvasPen pen, Rectangle rect)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.Rectangle |
rect |
|
Declaration
public void DrawEllipse(IPALCanvasPen pen, RectangleF rect)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.RectangleF |
rect |
|
Declaration
public void DrawImage(IPALImage image, Rectangle rect)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.Rectangle |
rect |
|
Declaration
public void DrawImage(IPALImage image, Rectangle src, Rectangle dest)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.Rectangle |
src |
|
System.Drawing.Rectangle |
dest |
|
Declaration
public void DrawImage(IPALImage image, RectangleF rect)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.RectangleF |
rect |
|
Declaration
public void DrawImage(IPALImage image, RectangleF src, RectangleF dest)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.RectangleF |
src |
|
System.Drawing.RectangleF |
dest |
|
Declaration
public void DrawImageUnscaled(IPALImage image, Point p)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.Point |
p |
|
Declaration
public void DrawImageUnscaled(IPALImage image, PointF p)
Parameters
Type |
Name |
Description |
IPALImage |
image |
|
System.Drawing.PointF |
p |
|
Declaration
public void DrawLine(IPALCanvasPen pen, Point p1, Point p2)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.Point |
p1 |
|
System.Drawing.Point |
p2 |
|
Declaration
public void DrawLine(IPALCanvasPen pen, PointF p1, PointF p2)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.PointF |
p1 |
|
System.Drawing.PointF |
p2 |
|
Declaration
public void DrawRectangle(IPALCanvasPen pen, Rectangle rect)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.Rectangle |
rect |
|
Declaration
public void DrawRectangle(IPALCanvasPen pen, RectangleF rect)
Parameters
Type |
Name |
Description |
IPALCanvasPen |
pen |
|
System.Drawing.RectangleF |
rect |
|
Declaration
public void DrawString(IPALCanvasFont font, IPALCanvasBrush brush, string text, PointF p)
Parameters
Declaration
public void FillRectangle(IPALCanvasBrush brush, Rectangle rect)
Parameters
Declaration
public void FillRectangle(IPALCanvasBrush brush, RectangleF rect)
Parameters
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