[Gambas-user] Picture.ToString() ?

Claus Dietrich claus.dietrich at freenet.de
Sat Dec 30 15:21:03 CET 2023


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



More information about the User mailing list