This method creates a vector image in the format specifed.
[Visual Basic] [ LONG_PTR
=
]imagekitcontrolname.Vector.CreateImage(Type
As CreateVectImageConstants, Width As Long, Height As Long, Xdpi As
Long, Ydpi As Long)
[Visual C++] [
LONG_PTR =
]imagekitcontrolname.GetVector().CreateImage(long
Type, long Width, long Height, long Xdpi, long Ydpi)
[VB.NET] [ Integer(x86) or
Long(x64) =
]imagekitcontrolname.Vector.CreateImage(Type
As ImageKit10(A)Lib.CreateVectImageConstants, Width As Integer,
Height As Integer, Xdpi As Integer, Ydpi As Integer)
[C#.NET] [ int(x86) or
long(x64) =
]imagekitcontrolname.Vector.CreateImage(ImageKit10(A)Lib.CreateVectImageConstants
Type, int Width, int Height, int Xdpi, int Ydpi)
* ImageKit10ALib refers to the ANSI version, ImageKit10Lib refers to the Unicode version.
Parameters
Name | Explanation |
---|---|
Type | The created vector image type (0:WMF, 1:EMF, 2:DXF,
3:SVG, 4:SXF) The following constants can be used: (ikCreateWMF = 0, ikCreateEMF = 1, ikCreateDXF = 2, ikCreateSVG = 3, ikCreateSXF = 4) |
Width | The width of the created image (in pixels) |
Height | 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 Common Control's CreateVectImageEx method in earlier versions of the ImageKit.
Difference between ImageKit7/8
The return value's type has changed.