VPicture Class: Picture Methods
ReadPicture() as Picture
Reads a picture from the VPicture field and returns it as a Picture to REALbasic. The picture in the database can be in any supported format.
Note, ReadPicture also can show pictures that was added into database using VBLOB.FromFile() method.
dim pict as Picture pict = fldPicture.ReadPicture()
WritePictureAs( inPict as Picture, inPictType as EVPictureType = kJPG, inQuality as Integer = 50)
- inPict - The Picture to be stored.
- inPictType - The picture format.
- inQuality - Compression rate, 0..100, default is 50.
Stores a Picture into VPicture field using the specified format.
Parameter Quality can be in the range 0..100 and specify quality of a jpeg compression. The larger the value the better the quality. This parameter can be ignored if the picture format does not require it, e.g. TIFF.
This method expect that Picture is
- DIB on Windows.
- PICT on MAC.
Note, PICT with JPG compression also is accepted if you specify inPictType as kJPG.
fldPicture.WritePictureAs( inPict, EVPicture.kJPG, 50 )