‎02-27-2006 06:15 PM
‎02-28-2006 03:50 PM
John123,
I am not too familier with the format of a PNG. My guess is that your 1-D array is basically a 2-D array with each row lined up end to end. If this is the case you should be able to create a 2-D array in VB.NET and then copy each row of pixels into the 2-D array.
For example...
Lets say your image is 5 pixels by 4 pixels.
PNG 1-D Array: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20
2-D Array:
1,2,3,4,5
6,7,8,9,10
11,12,13,14,15
16,17,18,19,20
Good Luck,
Lorne Hengst
Application Engineer
National Instruments
‎03-01-2006 08:46 AM
‎03-02-2006 09:03 PM
John,
Your going to have to read up on the png format and determine how the data in the format is structured so you can convert it properly.
Lorne Hengst
Application Engineer
National Instruments
‎03-03-2006 01:45 PM