On 31-Mar-08, at 10:19 PM, Norman Palardy wrote:
>
> On 31-Mar-08, at 12:48 AM, Andy Dent wrote:
>>
>> On 29/03/2008, at 10:32 AM, Norman Palardy wrote:
>>> dbrec = new databaseRecord
>>> dbrec.JPEGColumn("any") = p
>>> return dbrec.StringValue("any")
>>
>> Just thought I'd remind people that this is using a lossy JPEG
>> conversion whereas the PNG plugin-based approaches are non-lossy.
>
> Interestingly enough this does not actually turn it into a JEPG :P
> It's just a way to get at the byte that make up a picture.
> I've used this exact same code with GIF's, PNG's and BMP's etc
To be clear, the StringToPict trick works with formats other than
JPEG, but the reverse PictToString conversion (quoted above) most
certainly returns JPEG data - and rather heavily compressed JPEG data
by the looks of it. Also keep in mind that alpha channels are
discarded in both cases.
Frank.
<http://developer.chaoticbox.com/blog/>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|