[V4RB] VPicture challenges

Pedro fp lists at pedro.Net.au
Mon Sep 13 23:33:49 CDT 2004


G'day Ruslan et al

On 13/09/2004, at 4:11 PM, Ruslan Zasukhin wrote:

> You have very small photos?
>
> Otherwise how you can be sure that your array of photos will not eat 
> the
> whole RAM?
>
> I think may be better import picture by picture?

Perhaps so & I have code for that. From the sample data I have the 
pictures average 56 KB & they're imported in batches of around 30 
photos.

> Next, array get pictures simply from file.ReadAs... ?
> Vpicture field expect PICT which you can get only if picture is on 
> Canvas.

This puzzles me as the RB Language Reference says of 
folderItem.openAsPicture ...

"Opens the FolderItem to be read as a PICT and returns  its image as a 
picture object. ..."

I'll try something using a canvas & also Stephan's clipboard suggestion.

> You can try to use other function,
> It seems it is implemented in 1.x
> Function which save a picture AS IS.

Is this documented somewhere? I find 2 references for AS IS in the 
Valentina SQL Reference of Aug 25, 2004 but don't know what string I'd 
give for the picture. The Valentina for REALbasic Reference on the 
website appears to be older than Valentina 1.1.

> It should be close to AVERAGE size of your photos.

Great. I'll change accordingly.

Cheers, Pedro :-)

Web: <http://www.pedro.net.au>                    PGP Key ID: 387CD96F
Instant messaging...  AIM: bandidoOfOz  ICQ: 27671678  Jabber: pedrofp
                       MSN: mail at pedro.net.au           Yahoo: pedro_fp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"You can have your garden and eat it too."
                                   original



More information about the Valentina mailing list