ASP Painter
Home
Home
Samples
Samples
Purchase
Purchase
Download
Download
Documentation
Documentation


ASPPainter SaveToVariant

SaveToVariant Statement:

Write image to variable (can be also used to write image to OleLoadPicture in VC++)

dataVariant = Object.SaveToVariant ()

Returns:

dataVariant- has Variant object type.

Sample:
Dim data
data = object.SaveToVariant 3
MsgBox UBound(data)

This method saves image to binary variable. SaveToVariant differs from SaveToStream because it saves image data in binary data array format. You can easily use this data in VC and VB programs with OleLoadPicture method.
See also

SaveToVariant  ,SetFormat

More samples:



Stream
Stream



home samples purchase documentation download