Xref: utzoo comp.sys.amiga:19979 comp.sys.amiga.tech:974 Path: utzoo!attcan!uunet!husc6!bunny!hor-res!berry From: berry@hor-res.UUCP (No comment) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: Image in a window Summary: Hmmm some problems here. Keywords: Simple, no-prob, ACK!, doesn't work Message-ID: <210@hor-res.UUCP> Date: 13 Jun 88 22:43:48 GMT References: <740@csm9a.UUCP> Organization: Horizon Research, Waltham MA Lines: 44 In article <740@csm9a.UUCP>, ngorelic@csm9a.UUCP (Noel Gorelick) writes: > > > > I'm trying to display an image in a window in a screen. Simple, No? > > I have opened the screen with depth=5, and opened the window without any Ahh, according to the source here the screen is depth "3". > #include > #include > #include Technically "moon" is a C data structure (I'd call it moon.c). no biggie though. > struct Image picture = { > 0,0, /* LeftEdge, TopEdge */ > 53,47,5, /* Width, Height, Depth */ Here you say the Image is 5 bit planes, in the screen structure you say you only want 3 bit planes. Intuition could be getting confused, or worse writing 3 bitplanes of pictureData and 2 bit planes of zeros. That's what plane pick on/off does, fills or zeros specified planes. > struct NewScreen SS1 = { > 0,0,640,200,3, /* LEdge,TEdge,Width,Height,Depth */ Change this | > 1,2, /* DetailPen,BlockPen */ > NULL, /* ViewModes */ I'd also make this HIRES instead of NULL. unless you want LORES. The rest looks ok. I'd get some sample programs from a BBS or look in the Intuition Reference (or Rom Kernal Manual) for some intro on Amiga programming. Keep trying, you'll get it. -- -Steve Berry- ...!bunny!hor-res!berry "Dare to be gorgeous and unique. But don't ever be cryptic or otherwise Unfathomable. Make it unforgettably great." Intuition Reference Manual, pg 231.