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
sourceStream
StreamThe stream to load the image from.
desiredWidth
float?The desired width of the image.
desiredHeight
float?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
source
stringThe source resource, as a relative path.
desiredWidth
float?Desired width.
desiredHeight
float?Desired height.