Table of Contents

Interface IBitmap

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Represents a platform-agnostic bitmap image. This interface is used as a common wrapper for different bitmap implementations across various platforms (e.g., Windows, Android, iOS).

public interface IBitmap : IDisposable

Implements

Remarks

The primary purpose of this interface is to allow for the manipulation and passing of bitmap images in a generic way, without coupling the core logic to a specific UI framework or image library. Implementations of this interface are expected to handle the platform-specific details of bitmap creation, manipulation, and disposal. As it implements IDisposable, instances should be properly disposed of to release underlying resources. On Windows, this might wrap System.Drawing.Bitmap or SkiaSharp.SKBitmap. On Android, it could wrap Android.Graphics.Bitmap. On iOS, it might wrap UIImage or CGImage. This abstraction enables writing cross-platform image processing code that works consistently across all supported platforms.