Share via


Image.copyImage(Image) Method

Definition

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

Applies to