473,321 Members | 1,916 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

How to read pixels under a form

Hi,

I would like to create a form and read the pixels of the layer under
my form (think of a kind of magnifier glass), to do some processing on
them.

Do you have any idea about how to do this?

How can I read pixels under a form?

Thanks in advance
MrAsm
Mar 6 '07 #1
2 1580
Here is a FAQ entry showing how to get a bitmap of a form.

http://www.syncfusion.com/faq/window...earch/870.aspx

Once you have a bitmap, you can use Bitmap methods (like GetPixel) to
access pixels.

========================
Clay Burch
SYncfusion, Inc.

Mar 6 '07 #2
On 6 Mar 2007 01:34:18 -0800, "ClayB" <cl***@syncfusion.comwrote:
>Here is a FAQ entry showing how to get a bitmap of a form.

http://www.syncfusion.com/faq/window...earch/870.aspx

Once you have a bitmap, you can use Bitmap methods (like GetPixel) to
access pixels.
Thanks, but I think this is not what I'm looking for...

I'm not interested in capturing the form's bitmap; I'm interested in
capturing what is behind (under) the form.

Imagine the form is a kind of magnifier glass, and I would like to
process what's under the form.

An approach would be:

1. get form's rect (top, left, right, bottom)
2. hide the form
3. capture what is behind the form, i.e. capture the desktop bitmap in
the above rect region
4. show the form
5. process the bitmap and update form content

....but I was wandering if there is a more efficient way than
continuous hiding/grabbing bitmap/showing.

MrAsm
Mar 6 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Noozer | last post by:
I am able to place values on forms that load into my webbrowser control, but I'd like to be able to scan the page for data. I know to use the HTMLDocument object. Basically I'm hoping to find an...
3
by: spleen | last post by:
Hiya, Im working on a project to read in a file (its a bitmap, but thats irrelevant) and I want to read in all the data after an offset, ive tried using - fread(bitmap_buffer, offset, 1, fp);...
2
by: querypk | last post by:
Can some one help me to read PGM/PPM Images in C/C++. I am sure there should be a library or a simple routine to read the pixels of an Image and return a 2D array of pixel values...
6
by: VMI | last post by:
Is it possible to "look" at an image and "read" the letters inside of that image? For example, if I have several images of exactly the same size and each has two lines of letters (Name, telephone)...
22
by: liups | last post by:
Hi, I just come across this, how can I make a form's height larger than 780 pixels? Thank you.
8
by: Stacey | last post by:
I've been trying for the last couple of days to read some pixel values from a window of an independent application, but, even though I got close, I just can't figure the last part out. I am able...
4
by: Jaap Bos | last post by:
In VB2005 I use a rectangle (50,50,910,600) into which to display my graphics. After graphing my X-Y data I want to do some measurements on that curve using a crosshair cursor. So I a made a...
2
by: Marcel Brekelmans | last post by:
Hello, I save and restore the position and dimensions of a form using 'this.DeskTopBounds'. However, every time I open the form its Height grows with 19 or so pixels! Is there something I should...
2
by: Remync | last post by:
I am writing a program to store a ppm into one dimensional arrays in order to manipulate the data. The image that is being read is not correct. The code is as follows: if (strcmp (str, "P6") == 0) ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.