VoyForums

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 12[3]45678910 ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 20:40:14 06/03/03 Tue
Author: Michel
Subject: Re: IntraWeb 5.1 and Envision 2.0 - Cannot assign a TDibGraphic to a TJPEGImage
In reply to: David Weisbrod 's message, "IntraWeb 5.1 and Envision 2.0 - Cannot assign a TDibGraphic to a TJPEGImage" on 15:57:26 06/02/03 Mon


Hi David,

I have not worked with IntraWeb, so I can't give you specific advise.

There error you are getting is resulting from something like,

JpegImage.Assign(DibGraphic)

which ends up calling

TDibGraphic.AssignTo

A TDibGraphic can be assigned to a TBitmap, but not a TJpegImage. I did some research on this, and the TJpegImage is a read-only type graphic, ie, it does not have Canvas so the AssignTo implementation can not be straight forward. One way could be to save to a JPEG stream then using LoadFromStream but this is not elegant.

I don't know how the IW image control work. One possible workaround is to create a temporary TBitmap and assign the TDibGraphic to the TBitmap. I assume that the IW controls will work with a TBitmap.

Best regards,

Michel

>Does Envision 2.0 work with IntraWeb 5.1? I get the
>error message "Cannot assign a TDibGraphic to a
>TJPEGImage" in the EnDiGrph.pas (line 1256) unit when
>I use any of the IW Image controls.

[ Next Thread | Previous Thread | Next Message | Previous Message ]


Replies:


[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.