Class NetImage
Implements image using .NET framework GDI+ wrapper
Inheritance
System.Object
NetImage
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 NetImage : DisposableObject, IPALImage, IDisposable
Properties
Declaration
public ImagePixelFormat PixelFormat { get; }
Property Value
Methods
CreateCanvas()
Declaration
public IPALCanvas CreateCanvas()
Returns
Destructor()
Declaration
protected override void Destructor()
Overrides
GetPixel(Point)
Declaration
public Color GetPixel(Point p)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
p |
|
Returns
Type |
Description |
System.Drawing.Color |
|
GetPixel(PointF)
Declaration
public Color GetPixel(PointF p)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
p |
|
Returns
Type |
Description |
System.Drawing.Color |
|
GetSize()
Declaration
Returns
Type |
Description |
System.Drawing.Size |
|
GetXResolution()
Declaration
public int GetXResolution()
Returns
Type |
Description |
System.Int32 |
|
GetYResolution()
Declaration
public int GetYResolution()
Returns
Type |
Description |
System.Int32 |
|
MakeTransparent(Nullable<Color>)
Declaration
public void MakeTransparent(Color? dflt)
Parameters
Type |
Name |
Description |
System.Nullable<System.Drawing.Color> |
dflt |
|
Declaration
public byte[] Save(ImageFormat format)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
Declaration
public void Save(Stream stream, ImageFormat format)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
ImageFormat |
format |
|
Declaration
public void Save(string fileName, ImageFormat format)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
ImageFormat |
format |
|
SetPixel(Point, Color)
Declaration
public void SetPixel(Point p, Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
p |
|
System.Drawing.Color |
color |
|
SetPixel(PointF, Color)
Declaration
public void SetPixel(PointF p, Color color)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
p |
|
System.Drawing.Color |
color |
|
SetResolution(Int32, Int32)
Declaration
public void SetResolution(int xDPI, int yDPI)
Parameters
Type |
Name |
Description |
System.Int32 |
xDPI |
|
System.Int32 |
yDPI |
|
Implements
System.IDisposable
Extension Methods