Article View: comp.sys.amiga.tech
Article #11463DrawImage
From: Kevin Goroway
Date: Sat, 18 Feb 1989 21:45
Date: Sat, 18 Feb 1989 21:45
37 lines
1847 bytes
1847 bytes
I am having problems getting an image onto a RastPort (still...)
[many many thanks go to Chuck McManis for getting me this far...]
DrawImage is now working, but it is not putting my image there, it
is putting garbage on the screen...
I compile my image data (and the image structure) seperately, using
Lattice by doing a:
lc -ad b1.c (which supposedly forces my data into chip memory)
my code does the following...
extern struct Image b1_image; (because I am linking it...)
extern UWORD b1_imageData[];
b1_image.ImageData=&b1_imageData[0]; (again actually; this is done
also in the structure def.)
DrawImage(&rp,&b1_image,10,100); (works (sort of...))
(it is reading my size def fine,
but not my image def...)
could my image still not be in chip ram? I wrote some code to make
sure it is...
for (j=0;j<sizeof(b1_imageData);j++)
*src++=*dest++;
(or something like that, I don't recall)
But that didn't work either!
Could it have something to do with the PlanePick/PlaneOnOff stuff?
(I haven't touched that yet, but I still don't think I should be getting
garbage on the screen...)
thanks in advance...
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Pawn@wpi.wpi.edu Worcester Polytechnic Institute, Mass, U.S.A. |
| Pawn@wpi.Bitnet main() { printf("Hello World!\n); } |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<901@wpi.wpi.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!husc6!m2c!wpi!pawnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!husc6!m2c!wpi!pawn From: pawn@wpi.wpi.edu (Kevin Goroway) Newsgroups: comp.sys.amiga.tech,comp.sys.amiga Subject: DrawImage Message-ID: <901@wpi.wpi.edu> Date: 18 Feb 89 21:45:04 GMT Organization: Worcester Polytechnic Institute, Worcester, Mass. Lines: 36