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: Azos.Platform.NetFramework.dll
public sealed class NetImage : DisposableObject, IPALImage, IDisposable
Constructors
Declaration
public NetImage(Image img)
Parameters
Type |
Name |
Description |
System.Drawing.Image |
img |
|
Properties
Declaration
public Bitmap Bitmap { get; }
Property Value
Type |
Description |
System.Drawing.Bitmap |
|
Declaration
public ImageFormat LoadFormat { get; }
Property Value
Declaration
public ImagePixelFormat PixelFormat { get; }
Property Value
Methods
Declaration
public IPALCanvas CreateCanvas()
Returns
Declaration
protected override void Destructor()
Overrides
Declaration
public Color GetPixel(Point p)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
p |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Declaration
public Color GetPixel(PointF p)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
p |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Declaration
Returns
Type |
Description |
System.Drawing.Size |
|
Declaration
public int GetXResolution()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int GetYResolution()
Returns
Type |
Description |
System.Int32 |
|
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 |
|
Declaration
public void SetPixel(Point p, Color color)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
p |
|
System.Drawing.Color |
color |
|
Declaration
public void SetPixel(PointF p, Color color)
Parameters
Type |
Name |
Description |
System.Drawing.PointF |
p |
|
System.Drawing.Color |
color |
|
Declaration
public void SetResolution(int xDPI, int yDPI)
Parameters
Type |
Name |
Description |
System.Int32 |
xDPI |
|
System.Int32 |
yDPI |
|
Implements
System.IDisposable
Extension Methods