2008/8/10 Marc Weustink <[EMAIL PROTECTED]> > 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
_______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
