Class ControlOverlayWithImage
Represents an overlay control that displays an image at a specified location.
public class ControlOverlayWithImage : ControlOverlay, IBaseObjectWithId, IBaseObject, IControlOverlay
- Inheritance
-
ControlOverlayWithImage
- Implements
- Derived
Remarks
This class extends ControlOverlay to provide functionality for rendering an image on a control. The image is drawn at the location specified by the Location property.
Properties
- Bottom
Gets or sets the Y-coordinate of the bottom edge of the image, relative to its location. Value is calculated as Location.Y + ImageHeightInDips. Result is in device-independent pixels (DIPs).
- Bounds
Gets the bounds of the image as a rectangle in device-independent pixels (DIPs).
- Image
Gets or sets the image to display in the overlay.
- ImageHeightInDips
Gets the height of the image in device-independent pixels (DIPs).
- ImageHeightInPixels
Gets the height of the image in pixels.
- ImageSizeInDips
Gets the size of the image in device-independent pixels (DIPs).
- ImageSizeInPixels
Gets the size of the image in pixels.
- ImageWidthInDips
Gets the width of the image in device-independent pixels (DIPs).
- ImageWidthInPixels
Gets the width of the image in pixels.
- Location
Gets or sets the location where the image is drawn.
- Right
Gets or sets the x-coordinate of the right edge of the image, relative to its location. Value is calculated as Location.X + ImageWidthInDips. Result is in device-independent pixels (DIPs).
Methods
- OnPaint(AbstractControl, PaintEventArgs)
Paints the overlay on the specified control.