BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Virtual 2D arrays

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM
View previous topic :: View next topic  
Author Message
John
Guest





PostPosted: Thu Apr 13, 2006 11:03 am    Post subject: Virtual 2D arrays Reply with quote



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





PostPosted: Thu Apr 13, 2006 11:03 am    Post subject: Re: Virtual 2D arrays Reply with quote



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





PostPosted: Thu Apr 13, 2006 1:03 pm    Post subject: Re: Virtual 2D arrays Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Language BASM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.