[Gambas-user] Picture.ToString() ?
Bruce Steers
bsteers4 at gmail.com
Sat Dec 30 01:45:05 CET 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20231230/6cc48e1a/attachment.htm>
More information about the User
mailing list