[Lazarus] Recent Graphics changes...

wile64 wile64 at gmail.com
Sun Aug 10 20:47:59 CEST 2008


2008/8/10 Marc Weustink <marc at dommelstein.net>

> wile64 wrote:
>
> > I changed strategy and I don't load whole picture, I charge what is seen
> > and with DoubleBuffered is great ;)
> >
> > I have found a solution for the handles probleme, like this :
> >   PreviewImage:= TLazIntfImage.Create(0, 0);
> >   PreviewImage.DataDescription:=GetDescriptionFromDevice(0, 0, 0);
> >   PreviewImage.SetSize(PreviewWidth*32, PreviewHeight*32);
> >
> > This dont work:
> >  PreviewImage:= TLazIntfImage.Create(PreviewWidth*32, PreviewHeight*32);
>
> Yes, this way you don't have a device description.
>
> > I do not know if is good, but it works :-)
>
> you can combine
>     PreviewImage.DataDescription:=GetDescriptionFromDevice(0, 0, 0);
>    PreviewImage.SetSize(PreviewWidth*32, PreviewHeight*32);
> to
>    PreviewImage.DataDescription:=GetDescriptionFromDevice(
>      0, PreviewWidth*32, PreviewHeight*32);
>

Thanks for this.


> btw, why the *32 ?
>
>
Juste for test (width and height of tiles), I change this later...

regards
-- 
Laurent.

"If debugging is the art of removing bugs, then programming must be the art
of creating!"

My Components: http://wiki.lazarus.freepascal.org/Wile64
French Forum : http://lazforum-fr.tuxfamily.org/index.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20080810/259e658a/attachment-0007.html>


More information about the Lazarus mailing list