Hi,
I have a problem
I used PP256 to create DATA pictures but when they are used as data statements in QB, the pictures comes out wierd. I'm using the DATA directly insteat of though the subs provided withn pp256 because i can't get them to work
Graphics (DATA)
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
PP256 uses weird values in the DATA statments that I think has something to do with the pallett, or pallet changing... Therefor you're probaly way better of using, or learning to use the SUB routines... Or looking into the routines to see how to render the DATA..
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)
-
- Veteran
- Posts: 109
- Joined: Thu Feb 10, 2005 12:38 pm
unfortunately i don't understand the code in the subs, and it is the data statement, the data statements in the file are similar to this
When it should be this
Code: Select all
DATA 486
DATA 00,00,3516,00,00
DATA 00,3516,00,00,3516
DATA 3516,00,00,3516,00
DATA 00,00,3516,00,3156
DATA 00,3516,00,3516,00
DATA 3516,00,3516,00,00
DATA 00,00,3516,00,00
DATA 00,3516,00,00,00
Code: Select all
DATA 00,00,00,00,00
DATA 00,00,00,00,00
DATA 00,3516,00,00,00
DATA 00,00,3516,00,00
DATA 00,00,00,3516,00
DATA 00,00,00,00,3516
DATA 00,00,00,00,00
DATA 00,00,00,00,00
-
- Veteran
- Posts: 1055
- Joined: Sun Jan 02, 2005 2:11 pm
- Location: At my computer
- Contact:
Looks like from reading over the code, its a simple matter of putting the DATA into a code.. then doing this: Copy the stuff for | InitImageData (FileName$, ImageArray()) | into your code. Then in your code do this:
Try that, If that doesn't work, I'll take another look at it and see what I can do..
Code: Select all
InitImageData "", Picture1()
PUT (1, 1), Picture1, PSET
-Kevin (aka:Rattra)
(x.t.r.GRAPHICS)
(x.t.r.GRAPHICS)