[Gambas-user] Picture.ToString() ?
vuott at tutanota.com
vuott at tutanota.com
Sat Dec 30 15:40:57 CET 2023
...in order to achieve what ?
ciao !
30 dic 2023, 15:22 da claus.dietrich at freenet.de:
> Hi
>
> Why don't we have this function? I would have needed it many times already and someone else recently asked me for that.
>
> Could the Data-property of the image class help to get a fast solution? If so, how can it be used?
>
> Regards
>
> Claus
>
>
>> If there any simpler (non-file) way to get the opposite of
>> Picture.FromString()
>> I wanted a way to transmit image data using Print in Task.class.
>>
>> This works for me but wondered if there was a faster way than a physical
>> file?
>>
>> Public Sub PictureToString(Pic As Picture) As String
>>
>> Dim sTmp As String = File.SetExt(Temp("tmp-pic"), "png")
>> Pic.Save(sTmp)
>> Return File.Load(sTmp)
>>
>> End
>>
>> Respects
>> BruceS
>>
>
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231230/381a43a8/attachment-0001.htm>
More information about the User
mailing list