Announcement

Collapse
No announcement yet.

Graphics GET limited to 64k?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graphics GET limited to 64k?

    In short... is this true?
    And if so, why does this 'single memory segment' limit exist?

    Code:
    SCREEN 12
    PixelsPerBytePerPlane% = 8
    Planes% = 4
    Wid% = 400
    Hei% = 400
    BytesNeeded??? = 4 + CEIL(Wid% / PixelsPerBytePerPlane%) * Planes% * Hei%
    PRINT "About to create array of";BytesNeeded???;"bytes..."
      WHILE INKEY$ = "": WEND
    DIM HUGE Picture(1 TO BytesNeeded???) AS BYTE
    PRINT "About to grab image..."
      WHILE INKEY$ = "": WEND
    GET (0, 0) - (Wid%-1, Hei%-1), Picture
    PUT (16, 16), Picture, PSET
    PRINT
    PRINT "Successful!"
      WHILE INKEY$ = "": WEND
    ERASE Picture()
    SCREEN 0
    Does anyone have a solution to save a portion of screen 12, larger
    than 64k (350x350), to disk?

    ------------------
    Sebastian Groeneveld
    mailto:[email protected][email protected]</A>
    Sebastian Groeneveld
    mailto:[email protected][email protected]</A>

  • #2
    Save each plane as a file. Then when you need to load them
    load each plane. If I remember right there is an example in
    Ethan Winters book. It can be downloaded from the files section.
    KS

    ------------------

    Comment

    Working...
    X