Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Large bitmap to a bunch of smaller ones

Status
Not open for further replies.

fenris

Programmer
May 20, 1999
824
CA
I have a large bitmap (1024x768) and I want to be able to split the bitmap up into smaller bitmaps(or images) for analysis.

The idea is to be able to define a size say 100x100 and VB goes through with the 100x100 cookie cutter creating (approximately 70) new files in memory or saved to disc.

I am stumpped as to how I should accomplish this!


Any ideas? Troy Williams B.Eng.
fenris@hotmail.com

 
What I am trying to do is analyze the output of a program that I didn't write and have no access to the source code. The program generates a bitmap with a series of colored (red,green,blue,white) circles on a black background. The circles are arranged in a matrix.

r g b w r r r r b g g
b w b g w r w g b g w

Of course the matric is far bigger (400 x 400).

What I want is to be able to break the bitmap down and have the program figure out how the circles are arranged in relation to each other. In other words I am only interested in matrix pattern so that I can analyze it with vb.

It gets very tedious and error prone entering the pattern in by hand. Since I have no other way of entering the data, I thought a bitmap would be a good way. I guess this would be specialized form of OCR.


Instead of breaking the bitmap down, would I be able to crop the four types of circles and have the program look for matches then record there positions in relation to each other?

Again, thanks....
Troy Williams B.Eng.
fenris@hotmail.com

 
have a look at the PictureClip Control
have not used it in a while but you may find it useful for what you want
 
Thanks for the Tip Justin! Troy Williams B.Eng.
fenris@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top