> I have a picture inside my program, how do I write it to disk ?  I
> would like to write it to disk as a jpeg.


I got this neat trick from Will Leshner (I think) a while back:

> Function PictToString(Pict As Picture) As String
>     Dim ConDBRec As DatabaseRecord = New DatabaseRecord
>     Dim PictString As String
>
>     ConDBRec.MacPictColumn("pict") = Pict
>     PictString = EncodeBase64(ConDBRec.Column("pict"))
>     ConDBRec = Nil
>
>     Return PictString
> End Function

Which will give you the string you want, then just write it to disk.


-seanA


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to