Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-21 Thread Marc Weustink
Mattias Gaertner wrote: On Fri, 17 Aug 2007 23:04:53 +0400 skywriter <[EMAIL PROTECTED]> wrote: Add before LoadFromFile: myPict.GetDescriptionFromDevice(0); Reason: TLazIntfImage needs the image format (bit depth, colors, ...) of the target (your screen). Necessity of calling GetDescriptio

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-17 Thread Mattias Gaertner
On Fri, 17 Aug 2007 23:04:53 +0400 skywriter <[EMAIL PROTECTED]> wrote: > > Add before LoadFromFile: > > myPict.GetDescriptionFromDevice(0); > > > > Reason: > > TLazIntfImage needs the image format (bit depth, colors, ...) of the > > target (your screen). > > Necessity of calling GetDescripti

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-17 Thread skywriter
Add before LoadFromFile: myPict.GetDescriptionFromDevice(0); Reason: TLazIntfImage needs the image format (bit depth, colors, ...) of the target (your screen). Necessity of calling GetDescriptionFromDevice(0); is not obvious for developer. We accustomed the object is ready for use after co

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-17 Thread skywriter
Add before LoadFromFile: myPict.GetDescriptionFromDevice(0); Reason: TLazIntfImage needs the image format (bit depth, colors, ...) of the target (your screen). This works well, thanx! _ To unsubscribe: mail [EMAIL PROTECTE

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-17 Thread Mattias Gaertner
On Fri, 17 Aug 2007 10:14:48 +0400 skywriter <[EMAIL PROTECTED]> wrote: > > Please provide a complete example. > > > > Mattias > > > > Example in attachement. I cleared all binaries due to 40 KB limit of > mail list, so you have to make "Build All" before running. Add before LoadFromFile: m

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-17 Thread Vincent Snijders
skywriter schreef: Please provide a complete example. Mattias Example in attachement. I cleared all binaries due to 40 KB limit of mail list, so you have to make "Build All" before running. Removing binaries (also ppu's) is a sensible thing to do, because you cannot provide binaries for a

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-16 Thread skywriter
Please provide a complete example. Mattias Example in attachement. I cleared all binaries due to 40 KB limit of mail list, so you have to make "Build All" before running. TBitmap_bugreport.tar.bz2 Description: BZip2 compressed data

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-16 Thread Vincent Snijders
skywriter schreef: I simply sent letter with subject "Re: [lazarus] TClipboard.AssignToGraphic copies empty stream" with one attachement file about 100KB size. What i do wrong? The attachment is too big. The list allows 40 KB max. Vincent

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-16 Thread skywriter
Please provide a complete example. Mattias How can i do it? I already twice sent attachement to the thread about TBitmap.AssignToGraphic, but it seems they didn't achieve goal. I simply sent letter with subject "Re: [lazarus] TClipboard.AssignToGraphic copies empty stream" with one attache

Re: [lazarus] TBitmap.SetHandles stops executuoin

2007-08-16 Thread Mattias Gaertner
On Thu, 16 Aug 2007 15:53:39 +0400 skywriter <[EMAIL PROTECTED]> wrote: > I decided to extend class TLazIntfImage to make it possible to export > picture to TBitmap for displaying on screen: > > TLazIntfImageExtended = class(TLazIntfImage) > private > itsThreshold : TFPColor; > itsGr

[lazarus] TBitmap.SetHandles stops executuoin

2007-08-16 Thread skywriter
I decided to extend class TLazIntfImage to make it possible to export picture to TBitmap for displaying on screen: TLazIntfImageExtended = class(TLazIntfImage) private itsThreshold : TFPColor; itsGrayScale : Boolean; public constructor Create( _Width, _Height : Longword ); constru