The NEW IMAGE
command allows you to define a memory area where you can
store an image coming from the screen (with the GET IMAGE
command), or
from another graphic resource.
The area must be defined by (constant) width and (constant) height, expressed in pixels. The actual size,
in terms of bytes of RAM, will depend on the graphics mode selected at the time.
If it is not possible to define an image in that screen mode, a specific error will be issued.
= NEW IMAGE( width, height )
Join BASIC 10Liner Contest with ugBASIC!
An interesting competition is held at the beginning of each year: the
BASIC 10Liner Contest.
It is possible to use ugBASIC to participate in the next
"BASIC10Liner" competition, in the following categories:
NEW IMAGE ↔ NwIm
If you have found a problem with this keyword, if you think there is a bug or, more
simply, you would like it to be improved, open an issue for this example on GitHub.
Thank you!
open an issue
BACK TO KEYWORDS