Jaa


Image Class

Definition

Provides methods for loading, saving, and manipulating images. If you want to manipulate several images at the same time, use the Imagelist Class.

public ref class Image : Dynamics::AX::Application::BinData
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class Image : Dynamics.AX.Application.BinData
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type Image = class
    inherit BinData
Public Class Image
Inherits BinData
Inheritance
Microsoft.Dynamics.AX.KernelInterop.ProxyBase
Image
Attributes

Remarks

You can construct Image objects from the following file types:

  • Raster (bitmap) formats - .bmp, .gif, .jpg, .png, .tiff, and .exif
  • Vector formats - .emf and .wmf

If you want to work with several images at the same time, use the Imagelist class. You can construct the Image objects from the following file types:

  • Raster, which is a bitmap, formats - .bmp, .gif, .jpg, .png, .tiff, and .exif
  • Vector formats - .emf and .wmf

In Finance and Operations, the Image class is bound to the client. The class can no longer be run from the server because of the security risks that are associated with file handling.

The following example prints the height of Picture.jpg in pixels.

Image img = new  Image(); 
img.loadFile(@'C:\MyPictures\Picture.jpg'); 
print img.height(); 
pause;

Constructors

Image()
Image(IntPtr)
Image(Object, Int32, Int32)
Image(Object, Int32)
Image(Object)

Fields

__k_ImageId
kernelClass (Inherited from XppObjectBase)

Methods

__shouldCallNew(Type)
addXppProxyReference(Type, Object) (Inherited from XppObjectBase)
appendData(BinData) (Inherited from BinData)
appendToFile(String) (Inherited from BinData)
ascii85Encode() (Inherited from BinData)
base64Encode() (Inherited from BinData)
Call(String, Object[], Type[], Object[]) (Inherited from XppObjectBase)
cancelTimeOut(Int32) (Inherited from XppObjectBase)
canLoad(String)

Determines whether an image file exists and can be opened.

captureScreen(Int32, Int32, Int32, Int32)

Captures an image from the screen by using the coordinates that are supplied in the parameter list.

captureWindow(Int32)

Captures a window as an image, using the handle that is supplied as a parameter.

clipboardCopy()

Copies an image to the clipboard.

clipboardPaste()

Overwrites an existing image with the content of the system clipboard.

compressLZ77(Int32) (Inherited from BinData)
copyData(BinData, Int32, Int32) (Inherited from BinData)
copyData(BinData, Int32) (Inherited from BinData)
copyData(BinData) (Inherited from BinData)
copyImage(Image)

Copies the current image object.

createImage(Int32, Int32, Int32)

Creates an empty bitmap image with the width, height, and color depth as specified by the parameters.

createKernelClass(Object[], Type[], Object[]) (Inherited from XppObjectBase)
crop(Int32, Int32, Int32, Int32)

Crops the image.

decompressLZ77() (Inherited from BinData)
displayImage(Int64, Int32, Int32, Int32, Int32, Int32)
displayImage(Int64, Int32, Int32, Int32, Int32)
displayImage(Int64, Int32, Int32, Int32)
displayImage(Int64, Int32, Int32)
displayImage(Int64, Int32)
displayImage(Int64)

Draws an image with the device context specified by the HDC parameter.

displayOrign(Int32, Int32)

Enables you to specify an offset (X, Y) from the original origin (0, 0).

equal(XppObjectBase) (Inherited from XppObjectBase)
exportBitmap()

Gets a handle for the image.

finalize()
flip(FlipType)

Rotates the image 180 degrees in a vertical or horizontal direction.

getAsciiData() (Inherited from BinData)
getData() (Inherited from BinData)
getImageDimensionUnits()
GetIntPtr()
GetKernelInstanceUniqueId() (Inherited from XppObjectBase)
getPixel(Int32, Int32)

Retrieves the ARGB color value of the pixel at the point that is specified by the parameters.

getStrData() (Inherited from BinData)
getTimeOutTimerHandle() (Inherited from XppObjectBase)
getVariant() (Inherited from BinData)
getXppProxyReference(Type) (Inherited from XppObjectBase)
handle()
height()

Retrieves the height of the image in pixels.

imageInfo()

Retrieves the width, height, and color depth of the image.

imageSpotlight(Int32, Int32, Int32, Int32, Int32)

Produces a spotlight effect within the circle that is defined by radius with center coordinates x and y.

importBitmap(Int64)

Clones a bitmap from the image that is specified by the hBitmap parameter.

importFileIcon(String)

Creates an icon from the file specified by the fileName parameter by copying the icon that is used for the file.

importIcon(String, Int32)

Retrieves a handle to an icon from an executable file in Finance and Operations. The icon is specified by the fileName and iconIdx parameters.

IsManagedValid()
kernelhandle()
KernelInstanceDisposed() (Inherited from XppObjectBase)
loadExt(Int32)

Retrieves a list of the extensions of the file formats that are supported by the Image class.

loadFile(String, Int32, Int32) (Inherited from BinData)
loadFile(String, Int32) (Inherited from BinData)
loadFile(String) (Inherited from BinData)
loadImage(String)

Loads an image from the file specified by the fileName parameter.

loadResource(Int32)

Loads a resource from Ax32.exe.

MakeReflectionCall(String, Object[]) (Inherited from XppObjectBase)
newmethod()

Creates a new image.

newmethod(Object, Int32, Int32)
newmethod(Object, Int32)
newmethod(Object)
notify() (Inherited from XppObjectBase)
notifyAll() (Inherited from XppObjectBase)
objectOnServer()
Obsolete.
(Inherited from XppObjectBase)
promoteColor(Int32)

Increases the color depth of the image.

reduceColorOctree(Int32)

Reduces the color depth of an image.

removeImage()

Removes the data about an image; the object still exists, but has no data.

resize(Int32, Int32, InterpolationMode)

Resizes the image to the size that is specified by the newWidth and newHeight parameters.

resourceType(Int32)

Determines whether a particular resource is a bitmap or an icon.

rgb(Int32, Int32, Int32)

Converts an RGB value to an ARGB value.

rotate(RotateType)

Rotates the image.

saveFile(String) (Inherited from BinData)
saveImage(String, ImageSaveType)
saveImage(String)

Saves the image to the specified file name.

saveType()

Gets or sets the image decoder.

saveType(ImageSaveType)
setAsciiData(String, Int32) (Inherited from BinData)
setAsciiData(String) (Inherited from BinData)
setBinaryData(Binary) (Inherited from BinData)
setData(Object[]) (Inherited from BinData)
setPixel(Int32, Int32, Int32)

Sets the color for the pixel that is specified by the x and y parameters.

setStrData(String) (Inherited from BinData)
setTimeOut(String, Int32, Boolean)
Obsolete.
(Inherited from XppObjectBase)
setTimeOut(String, Int32)
Obsolete.
(Inherited from XppObjectBase)
setVariant(COMVariant) (Inherited from BinData)
size() (Inherited from BinData)
transparent()

Sets the transparent color for the image.

transparent(Boolean, Int32, Int32, Int32)
transparent(Boolean, Int32, Int32)
transparent(Boolean, Int32)
transparent(Boolean)
usageCount() (Inherited from XppObjectBase)
validResource(Int32)

Determines whether the resource specified by the id parameter is valid.

VerifyKernelClass() (Inherited from XppObjectBase)
wait() (Inherited from XppObjectBase)
width()

Retrieves the width of the image in pixels.

Xml() (Inherited from XppObjectBase)
Xml(Int32) (Inherited from XppObjectBase)

Applies to