Welcome to Dream.In.Code
Become a VB Expert!

Join 149,958 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,348 people online right now. Registration is fast and FREE... Join Now!




grayscale image into two dimensional array

 
Reply to this topicStart new topic

grayscale image into two dimensional array

Rating  1
aqeel_80
15 Jan, 2008 - 02:03 AM
Post #1

New D.I.C Head
*

Joined: 15 Jan, 2008
Posts: 1

How could we implement the code if I want to read a grayscale image file into two dimensional byte array?
A grayscale image is single band image and each pixel has a value between 0 and 255. Lets say my binary file has 20 rows and 10 columns (that is it is made of a total of 200 pixels).
User is offlineProfile CardPM
+Quote Post

LookNAO
RE: Grayscale Image Into Two Dimensional Array
17 Jan, 2008 - 12:48 PM
Post #2

D.I.C Head
**

Joined: 28 Dec, 2007
Posts: 66



Thanked: 1 times
My Contributions
CODE


For Column = 1 To 10
    For Row = 1 To 20
        A(Row , Column ) = {Get your data here}
    Next Row
Next Column



This should give you the idea...
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 06:08PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month