| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Handling big pictures |
Hi,
I've got some problems analyzing big pictures in VB. I wrote a program
that loads in a picture to a picture box in a form and then proceeds
to scan each vertical line for the colors and how many pixels there
are of each color. The problem is that these pictures can be around
20000 x 4000 pixels in size and I've noticed that VB(?) doesn't load
in(?) the part of the picture that isn't in view in the form. The form
and the picture box are 500x500 pixels in size. If I try to, for
example, read the color of pixel 501x501 then all I get is gibberish.
I've tried to get around this by scrolling the picture box in the form
so the area examined is always visible but then I got hit with another
problem. If the form(window) is obscured by another program I get
gibberish again.
So, my questions are:
1. Is there a property that I can set for the picture box so it will
be forced to read in the whole picture to memory?
2. Why do I get gibberish when my form is behind another form(window)?
3. Is there maybe a easier way to do it? Is it possible to allocate
memory and then read the picture straight into it and do some pokeing
and peeking instead of using a picture box?
Regards,
Linus
---
þ RIMEGate(tm)/RGXPost V1.14 at BBSWORLD * Info{at}bbsworld.com
---
* RIMEGate(tm)V10.2áÿ* RelayNet(tm) NNTP Gateway * MoonDog BBS
* RgateImp.MoonDog.BBS at 6/11/04 8:36:20 AM
* Origin: MoonDog BBS, Brooklyn,NY, 718 692-2498, 1:278/230 (1:278/230)SEEN-BY: 633/267 270 @PATH: 278/230 10/345 106/1 2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.