Public Member Functions | |
abstract void | Draw (Image image) |
Draws the given image into the receiver. The source image is scaled such that it fits precisely inside the receiver. More... | |
abstract void | Draw (Image image, bool hflip) |
Draws the given image into the receiver. The source image is scaled such that it fits precisely inside the receiver. The source image is also optionally flipped horizontally. More... | |
abstract void | DrawRect (Image image, Int32Rect srcRect) |
Copies the given rectangle from the source image into the receiver. More... | |
abstract void | Draw (Image image, Int32Rect dstRect) |
Draws the given image into the receiver. The source image is scaled and positioned such that it fits inside the 'dstRect'. More... | |
abstract void | Draw (BitmapSource source) |
Copies the pixels from the given bitmap source into the image. Assumes that the bitmap source size and the image size are the same. More... | |
abstract void | CopyTo (WriteableBitmap bitmap) |
Copies the image into a writable bitmap. Assumes that the bitmap was created with a Windows pixel format that is compatible to the image's pixel format. More... | |
abstract BitmapSource | CreateBitmapSource () |
Creates a new bitmap source which contains a copy of all the pixels of the receiver. More... | |
abstract BitmapSource | CreateBitmapSourceFromRegion (Int32Rect rect) |
Creates a new bitmap source which contains a copy of the pixels in the 'rect' region from the receiver. More... | |
void | Dispose () |
abstract void | Dispose (bool fromIDisposable) |
Static Public Member Functions | |
static Image | Create (int width, int height, PixelFormat pixelFormat) |
Creates a new bitmap backed image. This image type stores its pixels in main memory. More... | |
static Image | Create (int width, int height, PixelFormat pixelFormat, Accelerator accel) |
Creates a new texture backed image. This image type stores its pixels in main memory. More... | |
static Image | Create (BitmapSource bmp) |
Creates an image from the given BitmapSource instance. More... | |
static Image | Create (System.Drawing.Bitmap image) |
Creates an image from the given Windows bitmap. More... | |
static Image | Create (string path) |
Creates an image from the image file located at 'path'. More... | |
Properties | |
abstract int | Width [get] |
Returns the width of the image in pixels. More... | |
abstract int | Height [get] |
Returns the height of the image in pixels. More... | |
abstract PixelFormat | PixelFormat [get] |
Returns the pixel format. More... | |
abstract ImageType | Type [get] |
Returns the image type. More... | |
abstract Accelerator | Accelerator [get] |
Returns the accelerator or null if the image is not texture-based. More... | |
|
pure virtual |
Copies the image into a writable bitmap. Assumes that the bitmap was created with a Windows pixel format that is compatible to the image's pixel format.
bitmap | The writable bitmap |
|
static |
Creates an image from the given BitmapSource instance.
bmp | the BitmapSource |
|
static |
Creates a new bitmap backed image. This image type stores its pixels in main memory.
width | the width in pixels |
height | the height in pixels |
pixelFormat | the pixel format |
|
static |
Creates a new texture backed image. This image type stores its pixels in main memory.
width | the width in pixels |
height | the height in pixels |
pixelFormat | the pixel format |
accel | the accelerator |
|
static |
Creates an image from the image file located at 'path'.
path | the path to the image file |
|
static |
Creates an image from the given Windows bitmap.
image | the Windows bitmap |
|
pure virtual |
Creates a new bitmap source which contains a copy of all the pixels of the receiver.
|
pure virtual |
Creates a new bitmap source which contains a copy of the pixels in the 'rect' region from the receiver.
rect | the region of pixels to copy |
void RealNetworks.CameraKit.Image.Dispose | ( | ) |
|
pure virtual |
|
pure virtual |
Copies the pixels from the given bitmap source into the image. Assumes that the bitmap source size and the image size are the same.
source | The bitmap source |
|
pure virtual |
Draws the given image into the receiver. The source image is scaled such that it fits precisely inside the receiver.
image | the source image |
|
pure virtual |
Draws the given image into the receiver. The source image is scaled such that it fits precisely inside the receiver. The source image is also optionally flipped horizontally.
image | the source image |
hflip | true if the image should be flipped; false otherwise |
|
pure virtual |
Draws the given image into the receiver. The source image is scaled and positioned such that it fits inside the 'dstRect'.
image | the source image |
dstRect | the rectangle into which to draw the source image |
|
pure virtual |
Copies the given rectangle from the source image into the receiver.
image | the source image |
srcRect | the source rectangle |
|
get |
Returns the accelerator or null if the image is not texture-based.
|
get |
Returns the height of the image in pixels.
|
get |
Returns the pixel format.
|
get |
Returns the image type.
|
get |
Returns the width of the image in pixels.