Link to home
Start Free TrialLog in
Avatar of MikeMonroe
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.
Avatar of LukA_YJK
LukA_YJK
Flag of Azerbaijan image

Please clarify where to save from/to ?
Avatar of ILE
ILE

if your image is in bitmap


u mey use

bitmap1.savetofile('c:\path\filename.bmp');

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(Sender: TObject);
begin
  Image1.Picture.Bitmap.LoadFromClipboardFormat(cf_BitMap,
    ClipBoard.GetAsHandle(cf_Bitmap), 0);
  Image1.Picture.Bitmap.PixelFormat := pf24bit;
end;

procedure TForm1.Save1Click(Sender: TObject);
begin
  Image1.Picture.Bitmap.SaveToFile('c:\bmp.bmp');
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.
Avatar of MikeMonroe

ASKER

I want to save the image I capture from a DC(HDC). For example, a desktop screenshot.
ASKER CERTIFIED SOLUTION
Avatar of emadat
emadat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.