[]
Creates a new instance of the RawImage class from a disk file, RawImage supports only JPEG or JPEG2000 image formats.
public static RawImage FromFile(string fileName, RawImageFormat format, int width, int height, float horizontalResolution = 96, float verticalResolution = 96)
| Type | Name | Description |
|---|---|---|
| string | fileName | The image file name. |
| RawImageFormat | format | The format of the image. |
| int | width | The width of the image in pixels. |
| int | height | The height of the image in pixels. |
| float | horizontalResolution | The horizontal resolution. |
| float | verticalResolution | The vertical resolution. |
| Type | Description |
|---|---|
| RawImage |