Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Jan : Top down tbitmap
| Subject: | Top down tbitmap |
| Posted by: | "Marco van de Voort" (marc..@stack.nl) |
| Date: | 7 Jan 2008 11:47:50 |
Does sb know how to make a tbitmap that is top down? It should be something
like
program Project2;
{$APPTYPE CONSOLE}
uses
SysUtils,graphics;
var bmp : TBitmap;
begin
bmp := TBitmap.Create;
bmp.HandleType := bmDIB;
bmp.Height := -240;
bmp.Width := 320;
write('should be positive for top to bottom:');
writeln(,integer(bmp.scanline[1])-integer(bmp.scanline[0]));
readln;
end.
I know it is possible on API level, but due to existing code, it would be
easier if it is tbitmap based for now.
(The main reason is that my framegrabber returns topdown images in memory via
DMA, and copying them would be a bit faster as a whole (with a fastcode
routine) then rowwise)