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 

Screen to stream

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Ricardo Oliveira
Guest





PostPosted: Wed Nov 26, 2003 11:14 am    Post subject: Screen to stream Reply with quote



Hi!

Is it possible to send the image seen by the user (on the screen) to a
stream and then send it to another pc over the network?

Thanks in advance.

Ricardo Oliveira


Back to top
Jens Gruschel
Guest





PostPosted: Wed Nov 26, 2003 2:54 pm    Post subject: Re: Screen to stream Reply with quote



Quote:
Is it possible to send the image seen by the user (on the screen) to a
stream and then send it to another pc over the network?

Yes :-)

If you need to capture the screen content first, search for a capturing
routine. Once you have a bitmap, set its PixelFormat to pf24bit or something
that fits your needs. Now you can access the pixel data using
TBitmap.ScanLine, it should be rather simple to write the single lines to a
stream (use TStream.Write method). The number of bytes for each line depends
on the pixel format (3*Width for pf24bit).

Jens

P.S. I think this questions better fits to the graphics newsgroup. If you
have more questions, post them there.




Back to top
Rob Kennedy
Guest





PostPosted: Wed Nov 26, 2003 3:40 pm    Post subject: Re: Screen to stream Reply with quote



Jens Gruschel wrote:
Quote:
Now you can access the pixel data using TBitmap.ScanLine, it should
be rather simple to write the single lines to a stream (use
TStream.Write method).

TGraphic.SaveToStream comes to mind.

--
Rob


Back to top
Jens Gruschel
Guest





PostPosted: Thu Nov 27, 2003 12:02 pm    Post subject: Re: Screen to stream Reply with quote

Quote:
Now you can access the pixel data using TBitmap.ScanLine, it should
be rather simple to write the single lines to a stream (use
TStream.Write method).

TGraphic.SaveToStream comes to mind.

Sometimes my thoughts are too wired :-)

Jens




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing 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.