Method SetSimpleDialogResourceImage
SetSimpleDialogResourceImage(String, Int32, Int32, SelectBuf, SimpleDialogFileLoadOptions)
Puts an image on the selected image buffer at the desired location.
Declaration
Error SetSimpleDialogResourceImage(string fileName, int column, int row, SelectBuf buffer, SimpleDialogFileLoadOptions fileUploadOption)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The image file to use. |
System.Int32 | column | The column of the upper left corner of the image. |
System.Int32 | row | The row of the upper left corner of the image. |
SelectBuf | buffer | The dispay buffer to write to. |
SimpleDialogFileLoadOptions | fileUploadOption | Influences whether the image loaded from device storage. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
If the image is written to the shadow buffer by passing
ShadowBuffer to buffer
a subsequent
UpdateSimpleDialogDisplay(CopyBufOption)
is necessary to make the contents of the shadow buffer visible.
Examples
The example in UpdateSimpleDialogDisplay(CopyBufOption) loads dynamically created images.
SetSimpleDialogResourceImage(Bitmap, Int32, Int32, SelectBuf)
Puts an image on the selected image buffer at the desired location.
Declaration
Error SetSimpleDialogResourceImage(Bitmap bitmap, int column, int row, SelectBuf buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bitmap | The image. |
System.Int32 | column | The column of the upper left corner of the image. |
System.Int32 | row | The row of the upper left corner of the image. |
SelectBuf | buffer | The dispay buffer to write to. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
If the image is written to the shadow buffer by passing
ShadowBuffer to buffer
a subsequent
UpdateSimpleDialogDisplay(CopyBufOption)
is necessary to make the contents of the shadow buffer visible.
Examples
The example in UpdateSimpleDialogDisplay(CopyBufOption) loads dynamically created images.