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: 15:16:48 09/17/03 Wed
Author: Stampfli Heinz
Subject: Re: ImageScrollBox and TJpegImage
In reply to: Michel 's message, "Re: ImageScrollBox and TJpegImage" on 20:02:55 09/16/03 Tue

Hi Michel

When I try to compile it. It gives an Error:
"Incompatible types: TDipGraphic and TJpegImage"

I think it is a conversion problem between tdipgraphic and tjpegimage. I have rewritten the Function ExtractThumbnailJpeg() that it uses TJpegGraphic within the Library EnJpgGr. When I try to load, nothing happens (no error).


What is the diffrent from TDipGraphic and TGraphic. Can I convert them from one to the other?

When I load a JPEG into a TImage I also can't assign it to a TImageScrollBox.

Without Envision (only with the unit jpeg) dEXIF does work together with TImage to load the extracted Thumbnail.

I would program the whole Application with Envision Library.

Kind Regards
Heinz



>Hi Heinz,
>
>I have not used dEXIF so I may need more information.
>
>Does,
>
>function TImgData.ExtractThumbnailJpeg: TJpegImage;
>
>work properly?
>
>You can try this,
>
>var
> JpegImage : TJpegImage;
>begin
> ...
> JpegImage := ImgData.ExtractThumbnailJpeg;
> ImageScrollBox.Graphic := JpegImage;
> JpegImage.Free;
> ...
>end;
>
>Do you get any error message?
>
>Best regards,
>
>Michel
>
>>Hello Michel
>>
>>This kind of Code I have already tried.
>>I would like to extract the thumbnail with dEXIF
>>(<a rel=nofollow target=_blank href="http://mcguirez.homestead.com/downloads.html)">http://mcguirez.homestead.com/downloads.html)</a> and
>>assign it to the imagescrollbox.
>>
>>In dEXIF it uses the library jpeg. I have also
>>rewritten the function to use TJpegGraphic from
>>EnJpgGr. It doesn't work, too.
>>
>>The Function in dEXIF that extract the Jpeg Thumbnail:
>>function TImgData.ExtractThumbnailJpeg: TJpegImage;
>>var ti:TJPEGImage;
>> x:TStringStream;
>> tb:string;
>>begin
>> result := nil;
>> if HasThumbnail and (ExifObj.ThumbType =
>>JPEG_COMP_TYPE) then
>> begin
>> tb := ExtractThumbnailBuffer();
>> if (tb = '') then
>> exit;
>> x := TStringStream.Create(tb);
>> ti := TJPEGImage.Create;
>> x.Seek(0,soFromBeginning);
>> ti.LoadFromStream(x);
>> x.Free;
>> result := ti;
>> end;
>>end;
>>
>>Have you any other advice.
>>
>>Kind Regards
>>Heinz
>>
>>
>>>
>>>Hi Heinz,
>>>
>>>Try this,
>>>
>>>ImageScrollBox.Graphic.Assign(JpegImage);
>>>ImageScrollBox.Redraw(True);
>>>
>>>Best regards,
>>>
>>>Michel
>>>
>>>>Hello
>>>>
>>>>How do I assign a TJpegImage into a ImageScrollBox
>>>>with Envision 2.0.1. Can you give me an example?
>>>>
>>>>Kind Regards
>>>>Heinz Stampfli

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