| View previous topic :: View next topic |
| Author |
Message |
John Guest
|
Posted: Thu Apr 13, 2006 11:03 am Post subject: Virtual 2D arrays |
|
|
Hello,
I have multiples 2D arrays (pixels) that are arranged in Cells (X Columns by
yY Rows).
I would like to consider them as an inique (Virtual) big 2D array.
Is there a way to do this ?
Thanks
John |
|
| Back to top |
|
 |
Avatar Zondertau Guest
|
Posted: Thu Apr 13, 2006 11:03 am Post subject: Re: Virtual 2D arrays |
|
|
| Quote: | I have multiples 2D arrays (pixels) that are arranged in Cells (X
Columns by yY Rows). I would like to consider them as an inique
(Virtual) big 2D array. Is there a way to do this ?
|
This question doesn't seem to be related to BASM. A better place to ask
this might have been language.delphi.win32.
It is easy to interpret a one-dimension array with Width*Height
elements as a Width x Height two-dimensional array. To access the
element at X (0..Width-1), Y (0..Height-1) use either of these:
MyArray[X + Y * Width] (this stores the array row-by-row)
MyArray[X * Height + Y] (this stores the array column-by-column) |
|
| Back to top |
|
 |
John Guest
|
Posted: Thu Apr 13, 2006 1:03 pm Post subject: Re: Virtual 2D arrays |
|
|
Sorry for the wrong group,
in fact I work with Picture's bitmap so they are already in 2D som my all
data hahe to be arrange by cells of 2D datas,
and I would like that all of these 2D datas appear like one.
I will post it to Win32 forum. |
|
| Back to top |
|
 |
|