Image.copyImage(Image) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the current image object.
public:
virtual int copyImage(Dynamics::AX::Application::Image ^ _image);
public virtual int copyImage (Dynamics.AX.Application.Image _image);
abstract member copyImage : Dynamics.AX.Application.Image -> int
override this.copyImage : Dynamics.AX.Application.Image -> int
Public Overridable Function copyImage (_image As Image) As Integer
Parameters
- _image
- Image
The image to be copied.
Returns
0 indicates success; otherwise, failure.
Remarks
The following example creates two new images and then overwrites the contents of one image with the contents of the other.
Image img = new Image();
Image img2 = new Image();
img.loadFile(@'C:\test.bmp');
img2.loadFile(@'C:\test2.bmp');
img2.copyImage(img); //img2 now the same as img