MikeMonroe
asked on
Image saving and processing
I need to save a bitmap(800 by 600) in 16bit format in less than 10-20ms. Probably, this can be done with DIB. Please, test your answers first. Also, if you know how to access the bitmap's data very fast(.Pixels and .ScanLine didn't seem to be fast enough) please send your answer. Thank you. The points can be increased for a really good solution.
Please clarify where to save from/to ?
if your image is in bitmap
u mey use
bitmap1.savetofile('c:\pat h\filename .bmp');
it is wery fast command
or u wont something else? and i misanderstan you
u mey use
bitmap1.savetofile('c:\pat
it is wery fast command
or u wont something else? and i misanderstan you
why to use pf16bit? colors gets very ugly..
by using this code I get 2.84MB bitmap of my screen (1152x864@32bit) capture.
procedure TForm1.Image1DblClick(Send er: TObject);
begin
Image1.Picture.Bitmap.Load FromClipbo ardFormat( cf_BitMap,
ClipBoard.GetAsHandle(cf_B itmap), 0);
Image1.Picture.Bitmap.Pixe lFormat := pf24bit;
end;
procedure TForm1.Save1Click(Sender: TObject);
begin
Image1.Picture.Bitmap.Save ToFile('c: \bmp.bmp') ;
end;
mo.
by using this code I get 2.84MB bitmap of my screen (1152x864@32bit) capture.
procedure TForm1.Image1DblClick(Send
begin
Image1.Picture.Bitmap.Load
ClipBoard.GetAsHandle(cf_B
Image1.Picture.Bitmap.Pixe
end;
procedure TForm1.Save1Click(Sender: TObject);
begin
Image1.Picture.Bitmap.Save
end;
mo.
sorr, didn't understand your q right :)
try to use pf8bit - on my P4 it's only format in which that image saves less than in 20ms (only save, not converting from pfDefice)..
mo.
try to use pf8bit - on my P4 it's only format in which that image saves less than in 20ms (only save, not converting from pfDefice)..
mo.
ASKER
I want to save the image I capture from a DC(HDC). For example, a desktop screenshot.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MikeMonroe:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.