Interface IBitmapLoader
- Namespace
- Splat
- Assembly
- Splat.Drawing.dll
Represents the platform-specific image loader class. Unless you are testing image loading, you don't usually need to implement this.
- Extension Methods
Methods
Create(float, float)
Creates an empty bitmap of the specified dimensions.
Parameters
Returns
- IBitmap
A new image. Use ToNative() to convert this to a native bitmap.
Load(Stream, float?, float?)
Loads a bitmap from a byte stream.
Parameters
sourceStreamStreamThe stream to load the image from.
desiredWidthfloat?The desired width of the image.
desiredHeightfloat?The desired height of the image.
Returns
LoadFromResource(string, float?, float?)
Loads from the application's resources (i.e. from bundle on Cocoa, from Pack URIs on Windows, etc).
Parameters
sourcestringThe source resource, as a relative path.
desiredWidthfloat?Desired width.
desiredHeightfloat?Desired height.