This method creates a vector image in the format specifed.

[C++Builder]   [ NativeUInt = ]imagekitcontrolname->Vector->CreateImage(TVIkCreateVectImage AType, int AWidth, int AHeight, int Xdpi, int Ydpii)
[Delphi]   [ THandle = ]imagekitcontrolname.Vector.CreateImage(AType: TVIkCreateVectImage; AWidth, AHeight: Integer; Xdpi, Ydpi: Integer)

[TVIkCreateVectImage Type]

Unit
     IkInit

type
     TVIkCreateVectImage = (vikCreateWMF, vikCreateEMF, vikCreateDXF, vIkCreateSVG, vikCreateSVG);

Parameters

Name Explanation
AType The created vector image type (vikCreateWMF:WMF, vikCreateEMF:EMF, vikCreateDXF:DXF, vIkCreateSVG:SVG, vikCreateSVG:SXF)
AWidth The width of the created image (in pixels)
AHeight The height of the created image (in pixels)
Xdpi The number of pixels in one horizontal inch of the created image
Ydpi The number of pixels in one vertical inch of the created image

Return Value

If successful, the image handle of the vector image is returned. If unsuccessful, 0 is returned.

Explanation

The CreateImage method creates a vector image in the format specified.

The CreateImage method corresponds to the CreateVectImageEx method in earlier versions of the ImageKit.

Differences from ImageKit7/8/9/10 ActiveX

The VCL constants have a "v". In ActiveX, the constants are ikCreateWMF, ikCreateEMF, ikCreateDXF, ikCreateSVG, ikCreateSVG

 

The ImageKit10 VCL is a product created by Newtone Corporation