?
Solved

Image saving and processing

Posted on 2003-03-02
7
Medium Priority
?
179 Views
Last Modified: 2010-04-04
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
Comment
Question by:MikeMonroe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 3

Expert Comment

by:LukA_YJK
ID: 8051179
Please clarify where to save from/to ?
0
 
LVL 3

Expert Comment

by:ILE
ID: 8051655
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
 
LVL 9

Expert Comment

by:mocarts
ID: 8056507
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:mocarts
ID: 8056606
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
 

Author Comment

by:MikeMonroe
ID: 8057120
I want to save the image I capture from a DC(HDC). For example, a desktop screenshot.
0
 
LVL 3

Accepted Solution

by:
emadat earned 80 total points
ID: 8058640
0
 

Expert Comment

by:CleanupPing
ID: 9316982
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question