DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 20:35:09 -0700,    posted on: microsoft.public.dotnet.framework.drawing        back       

Thread Index
  1    unknown
          2    Göran Andersson


Best way to dynamically adjust Bitmap Dimensions?   
Hi there,

I have a bitmap which I get graphics from and draw on. Sometimes the
image will be too big for the bitmap bounds however, so I need to
increase the dimensions. The constructor in Bitmap that takes an
existing one and adjusts the size actually only scales it so this is
of no use to me. Any ideas?

Cheers
Date:Thu, 19 Jul 2007 20:35:09 -0700   Author:  

Re: Best way to dynamically adjust Bitmap Dimensions?   
blaXoid@hotmail.com wrote:

> Hi there,
> 
> I have a bitmap which I get graphics from and draw on. Sometimes the
> image will be too big for the bitmap bounds however, so I need to
> increase the dimensions. The constructor in Bitmap that takes an
> existing one and adjusts the size actually only scales it so this is
> of no use to me. Any ideas?


Create a new Bitmap with the desired size and draw the previous bitmap 
onto it.

-- 
Gran Andersson
_____
http://www.guffa.com
Date:Sun, 22 Jul 2007 14:21:05 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us