New topic: Window Paint Image
<http://forums.realsoftware.com/viewtopic.php?t=46223> Page 1 of 1 [ 3 posts ] Previous topic | Next topic Author Message Stuart J Sykes Post subject: Window Paint ImagePosted: Wed Dec 12, 2012 12:58 pm Joined: Fri Oct 26, 2012 6:24 am Posts: 26 I want to use a gradient image on a window background (the gradient is a PNG from transparent to red vertically - done in Photoshop) Iv'e done the image very thin (10 pixels wide X 200 pixels high) because I intend to stretch it horizontally but I want the gradient image to stretch with the windows height and width. I know it can be done in the paint event of the window but can't seem to figure out the coding. Any help would be much appreciated. I'm pretty sure its a Graphics.DrawPicture event in the window paint handler Last edited by Stuart J Sykes on Wed Dec 12, 2012 1:08 pm, edited 1 time in total. Top kermit Post subject: Re: Window Paint ImagePosted: Wed Dec 12, 2012 1:03 pm Joined: Mon May 30, 2011 12:56 am Posts: 567 if the image is called grad and it is in your project in the window paint event: g.drawpicture grad,0,0,g.width,g.height,0,0,grad.width,grad.height Top Stuart J Sykes Post subject: Re: Window Paint ImagePosted: Wed Dec 12, 2012 1:11 pm Joined: Fri Oct 26, 2012 6:24 am Posts: 26 Thanks Kermit - exactly what I needed Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 3 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
