Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926

    Unanswered: Make an image a 2 dimensional array

    I have a set of images in a 1 dimensional array (i.e.. Image(1), Image(2), etc...) I want to make these into a 2 dimensional array (i.e...Image(1,1), Image(1,2), etc..) How do I do this?
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  2. #2
    Join Date
    Nov 2002
    Posts
    272
    First you need to think of your mapping algorythm: where do you want Image(n) to be in the new array?
    I(1) -> I(1,1)
    I(2) -> I(1,2)
    I(3) -> I(1,3)? I(2,1)?
    Generalize to
    I(n) -> I(i,j)
    Then find a way to convert that into a for-next loop.

  3. #3
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Gotcha - Thanks ivon.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •