VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

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: 02:22:02 08/04/03 Mon
Author: Michel
Subject: Re: IntraWeb 5.1 and Envision 2.0 - Cannot assign a TDibGraphic to a TJPEGImage
In reply to: David W 's message, "Re: IntraWeb 5.1 and Envision 2.0 - Cannot assign a TDibGraphic to a TJPEGImage" on 13:49:13 08/03/03 Sun


Hi Dave,

Yes, you can use TPicture.UnregisterGraphicClass.

Best regards,

Michel

>Michel-
>
>Is there a way I register and then unregister the JPG
>format on the fly? Then I could only use it when I
>need it and not mess with the way IW does it's thing
>(it's a black box!).
>
>Thanks!
>
>-Dave
>
>>
>>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.