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: 123456789[10] ]


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

Date Posted: 07:58:34 03/22/00 Wed
Author: Michel
Subject: Re: Faster Painting?
In reply to: Nohican 's message, "Faster Painting?" on 03:46:56 03/22/00 Wed


Dear Nohican,

Using the Canvas has the advantage of being more flexible, as there are many methods available but when speed is important is should be avoided.

In this case I don't think there is much you can do, because you are copying to a canvas itself. I think it would be better to do the resizing seperately, for example using two TDibGraphic objects and the TResizeTransform, and then copying to the PaintBox. But I'm still not sure about this, it may the operation on the paint box itself that slows things down.

Best regards,

Michel

renderinfo.canvas.copyrect(destrect,fdibgraphic.canvas,
srcrect);

> At this in my application i use the the envision
> TDibgraphic and paint it on a TPaintbox using the
> copyrect function from TPaintBox. I cannot use th
> Draw function of the TDibGRaphic as i need to stretch
> the *source* image as well. But this is terribly slow,
> anyone know a faster way of doing this:
> renderinfo.canvas.copyrect(destrect,fdibgraphic.canvas,
> srcrect);
> destrect and sourcerect both change according to some
> calulcations. help.
>
> Greetings,
> Nohican

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