BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Reduce Color Depth of Bitmap

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Charles Hacker
Guest





PostPosted: Thu Aug 25, 2005 10:04 pm    Post subject: Reduce Color Depth of Bitmap Reply with quote



Hi all,

I am looking to reduce the color/pixel depth of a bitmap for copying.

The standard
Clipboard.Assign(Bmap);

Seems to copy the full 32bit color image of the display, (Thus the
bitmaps become massive in memory size).

When I try to decrese the pixel depth, as below:

procedure TForm1.ButCopyClick(Sender: TObject);
VAR Bmap: TBitmap;
begin
Bmap:= GetFormImage;
BMap.PixelFormat:= pf16Bit;
Clipboard.Assign(Bmap);
Bmap.Free;
end;

However, the image stored to the clipboard is still in the massive 32bit
(pf32Bit) pixel format.

So I am wondering how to decrease the pixel depth, so only a small
memory (pf16bit) image is copied to the clipbrd.

Regards,
Back to top
Ronaldo Souza
Guest





PostPosted: Thu Aug 25, 2005 10:28 pm    Post subject: Re: Reduce Color Depth of Bitmap Reply with quote



Charles,
Check yesterday's (well, that depends on where you are... Smile)thread
"Bitmap Compression Techniques".
HTH,
Ronaldo

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.