[ 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: 19:30:16 09/08/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 12:34:03 09/05/03 Fri

Hi Dave,

I would not use UnregisterGraphicClass unless any registered Envision classes unless you really have to. Do you try converting to a TBitmap explicitely, or using SaveToStream/LoadFromStream?

As far as using in a DLL, I don't see any problems.

Best regards,


>I am trying to use the TThumbnailCreator class within
>a DataModule. Could you please explain where and how
>I would use the TPicture.UnregisterGraphicClass method
>to turn on and off the support for Envision?
>Also, could I use Envision in a DLL to do what I want
>or would that also cause problems for IntraWeb?
>>Hi Dave,
>>Yes, you can use TPicture.UnregisterGraphicClass.
>>Best regards,
>>>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!).
>>>>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,
>>>>which ends up calling
>>>>A TDibGraphic can be assigned to a TBitmap, but not
>>>>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
>>>>be straight forward. One way could be to save to a
>>>>JPEG stream then using LoadFromStream but this is
>>>>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,
>>>>>Does Envision 2.0 work with IntraWeb 5.1? I get
>>>>>error message "Cannot assign a TDibGraphic to a
>>>>>TJPEGImage" in the EnDiGrph.pas (line 1256) unit
>>>>>I use any of the IW Image controls.

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

[ 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.