🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2408

Re: Getting text from an external Grid

#2408
From: Remy Lebeau (TeamB)
Date: Wed, 28 Feb 2007 23:25
20 lines
1726 bytes
"Dan" <Dan@do.not.spam> wrote in message
news:45e5fd07$1@newsgroups.borland.com...

> I can get the color of each pixel in the object as it is displayed,
> and can basically repaint the object onto my own canvas.
> I could then export that as a bitmap or jpeg.

There is an easier way.  You can copy the entire contents of a HWND
using GetWindowDC() and BitBlt().  You do not have to deal with the
individual pixels.

> Are there any components available that will take that data
> (in a bitmap or jpeg) and translate it into text?  Like optical
> character recognition on a scanner?

None from Borland.  You would need third-party ones for that.


Gambit
Technical Details
Message-ID: <45e60f88$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3d58209a1f02789a
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com>
Subject: Re: Getting text from an external Grid
Date: Wed, 28 Feb 2007 15:25:24 -0800
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45e60f88$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172705160 75.83.34.171 (28 Feb 2007 15:26:00 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail