Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 181
  • Last Modified:

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.
0
MikeMonroe
Asked:
MikeMonroe
1 Solution
 
LukA_YJKCommented:
Please clarify where to save from/to ?
0
 
ILECommented:
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
0
 
mocartsCommented:
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.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mocartsCommented:
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.
0
 
MikeMonroeAuthor Commented:
I want to save the image I capture from a DC(HDC). For example, a desktop screenshot.
0
 
emadatCommented:
0
 
CleanupPingCommented:
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.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now