New topic: Adjust the image to the size of a ImageView
<http://forums.realsoftware.com/viewtopic.php?t=47619> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message dhernandez Post subject: Adjust the image to the size of a ImageViewPosted: Wed Apr 17, 2013 9:45 am Joined: Tue Apr 09, 2013 3:09 pm Posts: 13 Location: Reynosa, Tamps. Mexico Good day to all. I am displaying an image in a WebImageView, but they are very large images and not full WebImageView sees. Is there any way that the image fits the size of WebImageView Control? Thanks in advance for your answers Top Jason_Adams Post subject: Re: Adjust the image to the size of a ImageViewPosted: Wed Apr 17, 2013 9:49 am Joined: Fri Nov 10, 2006 4:10 pm Posts: 1775 Location: Michigan, USA You need to create a new Picture at the dimensions you want the scaled image to be at, then use the Picture.Graphics.DrawPicture method to draw and scale the large image into your scaled one. After that, use the scaled image in the WebImageView. Hope this helps! _________________ Windows 7 Ultimate x64 Windows XP Pro SP3 Ubuntu 11.04 via Virtual Box RS Enterprise 2012r1.1 Programming Tutorials & Free Projects: http://www.JasonTheAdams.com "Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 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]
