Class ImageExt
Represents class for correctly drawing bitmap or icons.
Inheritance
System.Object
ImageExt
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools.XPMenus
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ImageExt : IDisposable
Constructors
ImageExt(Icon)
Declaration
public ImageExt(Icon icon)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Icon | icon |
ImageExt(Image)
Declaration
public ImageExt(Image bitmap)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Image | bitmap |
Properties
Height
Declaration
public int Height { get; }
Property Value
Type |
---|
System.Int32 |
Size
Declaration
public Size Size { get; }
Property Value
Type |
---|
System.Drawing.Size |
Width
Declaration
public int Width { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Dispose()
Declaration
public void Dispose()
Draw(Graphics, Rectangle, DrawItemState)
Draws icon or bitmap.
Declaration
public virtual void Draw(Graphics g, Rectangle bounds, DrawItemState state)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.Drawing.Rectangle | bounds | |
System.Windows.Forms.DrawItemState | state |
GetImage()
Gets duplicate displayed image.
Declaration
public Image GetImage()
Returns
Type |
---|
System.Drawing.Image |
GetSize()
Gets size of image.
Declaration
public Size GetSize()
Returns
Type |
---|
System.Drawing.Size |
Operators
Implicit(Bitmap to ImageExt)
Declaration
public static implicit operator ImageExt(Bitmap value)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | value |
Returns
Type |
---|
ImageExt |
Implicit(Icon to ImageExt)
Declaration
public static implicit operator ImageExt(Icon value)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Icon | value |
Returns
Type |
---|
ImageExt |
Implements
System.IDisposable