Article View: borland.public.cppbuilder.nativeapi
Article #10231Re: Reading contents from other applications again..
From: Johan
Date: Thu, 06 May 2004 16:57
Date: Thu, 06 May 2004 16:57
27 lines
1767 bytes
1767 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: >johan wrote: > >>My new idea is retrive the hdc for the window( which I have successfully done and verified that it is the correct one) >>when I have this hdc I would like to copy the information in some format maybe like a bitmap or something. Then by reading the color of each pixel i will make an algorithm to convert pixels to text. > >That could be tricky. > >>My problem is, how do I copy data from the window, > >BitBlt() > >> and then whatever format it is, how can I recognize the colors for each pixel? > >While you are on the BitBlt Help screen, press the Overview button to >learn all about bitmaps. Also press the Group button to see the >functions you could use. > >GetPixel() looks promising. > > GetPixel() straight on the hdc worked perfectly and easy to work with. Thank you sir! Best Regards Johan //Johan
Technical Details
Message-ID:
<409a6e6f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4096674f$1@newsgroups.borland.com> <3duc90h0j364tada0ofsjjbl9q85j5auet@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,af36a63c92de75ec X-Google-Attributes: gid10cc67,public From: "Johan" <info@bulletinboard.nu> Sender: "Johan" <info@bulletinboard.nu> Reply-To: "Johan" <info@bulletinboard.nu> Subject: Re: Reading contents from other applications again.. Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 212.205.218.156 References: <4096674f$1@newsgroups.borland.com> <3duc90h0j364tada0ofsjjbl9q85j5auet@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <409a6e6f@newsgroups.borland.com> Date: 6 May 2004 09:57:19 -0700 X-Trace: newsgroups.borland.com 1083862639 207.105.83.66 (6 May 2004 09:57:19 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail