List Info

Thread: drawing




drawing
user name
2006-05-26 19:31:29

(not really an asp.net question, but I am doing this in asp.net, so here I go)

I have a bitmap object that I have created.  I will need to expand the size of the bitmap without stretching the existing bitmap and distorting it.  It looks like I can do something like this:

 

Bitmap b = new Bitmap(500,500);

…230;……..

Size sz = new Size(750, 750);

Bitmap b2 = new Bitmap(b, sz);

 

I think that b2 is now the same content as b2 but with the new size. ; It looks like it will do what I want, but I wanted to check on this.  Thoughts?  Any better way to do what I want?

 

Wally

 

Wallace B. McClure
http://www.aspnetpodcast.com/
Microsoft MVP
AspInsider - http://www.aspinsiders.com/

INETA Speaker's Bureau - http://www.ineta.org/
http://www.scalabledevelopment.com/
Blog: http://weblogs.asp.net/wallym/

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )