Xref: utzoo comp.sys.amiga.tech:3803 comp.sys.amiga:29508 Path: 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 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