UIImage - harborsiem/WinForms-Ribbon GitHub Wiki

UIImage

Helper class for COM interface IUIImage.

Public constructors, methods, properties and events:

Constructors:

Name Description
UIImage(RibbonStrip, string, bool) Initializes a new instance of the UIImage class by filename and highContrast flag.
UIImage(RibbonStrip, Bitmap) Initializes a new instance of the UIImage class by a Bitmap.
UIImage(RibbonStrip, IntPtr, ushort) Initializes a new instance of the UIImage class by MarkupHandle and resource id.
UIImage(RibbonStrip, IntPtr, string) Initializes a new instance of the UIImage class by MarkupHandle and resource string.

Methods:

Name Description
GetBitmap() (Bitmap?) Get the Bitmap.

Properties:

Name Description
Height (int) Get the height of the image.
Width (int) Get the width of the image.
BitsPerPixel (ushort) Get bits per pixel of the image.
HBitmap (IntPtr) Get a HBITMAP of the image.

Events: