Page 1 of 1

a way to import picture for paint

Posted: Wed Feb 24, 2010 6:00 pm
by jmburnod
Hi All,

An interessant discover (for me)

Code: Select all

on ImportPicture pName,pFile
   set the filename of img pName to pFile
   set the imagedata of img pName to the imagedate of img pName
end ImportPicture
It work well with rev 4.0 (i'll try in standalone next time)

But it is really a good idea ?

Jean-Marc

Re: a way to import picture for paint

Posted: Wed Feb 24, 2010 6:05 pm
by BvG
you can achieve a similar result by using the "import" command. Other then using that, your example is certainly more useful in some cases, like when you do not want a new image created, but change an existing one.

Re: a way to import picture for paint

Posted: Wed Feb 24, 2010 6:30 pm
by Klaus
Bonjour Jean-Marc,

to make it a bit shorter:

Code: Select all

on ImportPicture pName,pFile
   put url("binfile:" & pFile) into img pName
end ImportPicture
:)

Best

Klaus

Re: a way to import picture for paint

Posted: Sat Feb 27, 2010 10:50 am
by jmburnod
Yes Bvg

I want change an image early on the card

und

danke noch einmal Klaus for one line less

Regards

Jean-Marc