menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ImageExt - API Reference

    Show / Hide Table of Contents

    Class ImageExt

    Represents class for correctly drawing bitmap or icons.

    Inheritance
    System.Object
    ImageExt
    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()
    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 Description
    System.Int32

    Size

    Declaration
    public Size Size { get; }
    Property Value
    Type Description
    System.Drawing.Size

    Width

    Declaration
    public int Width { get; }
    Property Value
    Type Description
    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 Description
    System.Drawing.Image

    GetSize()

    Gets size of image.

    Declaration
    public Size GetSize()
    Returns
    Type Description
    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 Description
    ImageExt

    Implicit(Icon to ImageExt)

    Declaration
    public static implicit operator ImageExt(Icon value)
    Parameters
    Type Name Description
    System.Drawing.Icon value
    Returns
    Type Description
    ImageExt

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved