![]() ![]() I just did some timing with this code: procedure TimingTest by calling _outBmp.SetSize(0, 0) or any other means? If yes, what would be the most efficient way? convert the old content to the new pixel format), so should I somehow clear it first, e.g. I wonder whether simply changing its PixelFormat might create some overhead (e.g. It will be completely overwritten in the procedure. ![]() The Output bitmap might not be empty when it is being passed to this procedure, but might contain anything in any format. code that works on ScanLines goes here _outBmp.SetSize(_inBmp.Width, _inBmp.Height) This is about Delphi, 32 bits and Windows/VCL:įor a procedure that takes an input bitmap and writes to an output bitmap with a given format (PixelFormat: pf8Bit with a gray scale palette) I use the following code: procedure ConvertBitmap(_inBmp: TBitmap _outBmp: TBitmap)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |