Page 1 of 1

Graphics (DATA)

Posted: Thu Aug 04, 2005 1:11 pm
by RayBritton
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

Posted: Thu Aug 04, 2005 2:05 pm
by {Nathan}
It would help if you posted code :)

I think you're putting x before y in your loop, you need to have y first or it will be screwed up. Other than that, POST YOUR CODE (and make sure to use the code tags)

Posted: Thu Aug 04, 2005 8:13 pm
by Rattrapmax6
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..

:wink:

Posted: Fri Aug 05, 2005 3:02 am
by RayBritton
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

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
When it should be this

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

Posted: Fri Aug 05, 2005 10:22 am
by Rattrapmax6
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:

Code: Select all

InitImageData "", Picture1()

PUT (1, 1), Picture1, PSET
Try that, If that doesn't work, I'll take another look at it and see what I can do.. :wink:

Posted: Sat Aug 06, 2005 5:48 am
by RayBritton
don't worry now

Posted: Sat Aug 06, 2005 10:40 am
by Nodtveidt
pp256's routines suck. :D