getPicture

getPicture(): Binary;

The getPicture method of the JadeDotNetType class is a helper method that enables you to retrieve binary image information from a .NET Image object, which is in the System.Drawing.dll assembly if that type has not been imported into JADE; for example, if a method in a .NET assembly returns an Image object, the Image type is not imported because it is not specific to the assembly when the assembly is imported into JADE.

The returned type for the imported method is the generic JadeDotNetType type.

The following method shows the use of the getPicture method.

vars
    i : JadeDotNetType;                    // To represent an Image object
begin
    // Use createPicture to make an Image object
    create i transient;
    i.createPicture(app.loadPicture("c:\jade.bmp"));
    // Use the helper method to retrieve binary picture information
    write i.getPicture.pictureType;        // Outputs 1 (PictureType_Bitmap)
epilog
    delete i;
end;