- fileName
- String containing the name of the image file to load.
- bitsPerPixel
-
Resulting image pixel depth. Valid values are:
value meaning 0 Keep the original file's pixel depth (Do not convert). 1 to 8 The specified bits per pixel in the resultant image. 12 12 bits per pixel in the resultant image. 16 16 bits per pixel in the resultant image. 24 24 bits per pixel in the resultant image. 32 32 bits per pixel in the resultant image. 48 48 bits per pixel in the resultant image. 64 64 bits per pixel in the resultant image.
- order
- An CodecsLoadByteOrder enumeration that describes the desired color order.
- pageNumber
- Page number to load (1-based) if the file contains a multi-page image.
Visual Basic (Declaration) | |
---|---|
Public Function Load( _ ByVal fileName As String, _ ByVal bitsPerPixel As Integer, _ ByVal order As CodecsLoadByteOrder, _ ByVal pageNumber As Integer _ ) As RasterImage |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterImage Load( string fileName, int bitsPerPixel, CodecsLoadByteOrder order, int pageNumber ) |
C++/CLI | |
---|---|
public: RasterImage^ Load( String^ fileName, int bitsPerPixel, CodecsLoadByteOrder order, int pageNumber ) |
Parameters
- fileName
- String containing the name of the image file to load.
- bitsPerPixel
-
Resulting image pixel depth. Valid values are:
value meaning 0 Keep the original file's pixel depth (Do not convert). 1 to 8 The specified bits per pixel in the resultant image. 12 12 bits per pixel in the resultant image. 16 16 bits per pixel in the resultant image. 24 24 bits per pixel in the resultant image. 32 32 bits per pixel in the resultant image. 48 48 bits per pixel in the resultant image. 64 64 bits per pixel in the resultant image. - order
- An CodecsLoadByteOrder enumeration that describes the desired color order.
- pageNumber
- Page number to load (1-based) if the file contains a multi-page image.
Return Value
The RasterImage that this method loads.For an example, refer to RasterCodecs.
Use CodecsLoadByteOrder.BgrOrGray if you want to keep the original byte order as it occur in the image.
Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6