How to create and draw into a white empty Image



Hi,

I created some thumbnails from pictures - they all have a size of up to
80 pixels in width or height (if it is a square pic, the size is
exactly 80 x 80, otherwise 80 pixel is the size of the greater
dimension).

For displaying purposes, I want to view them all in the same size, that
is 80 x 80.
Pictures that are smaller shall have a white border to fill up the size
to 80 pixels.

How can I do that? I have the thumbnail already in a
System.Drawing.Image object, but I have no clue how to add this white
border, or even how to create the empty 80 x 80 white picture first,
where I want to draw my thumbnail into. I looked already for the
classes Bitmap, DrawImage, Graphics (all in namespace System.Drawing),
but couldn't find any appropriate method.


I appreciate any help,

TheLetti

.



Relevant Pages

  • Re: Website Photo album gererator
    ... It is XHTML 1.0 Strict and CSS 2.0 compliant with no javascript, which is rare in albums these days. ... I need to show a series of thumbnails and pictures on the community web site I am working on. ... I am creating thumbnails 200 pixels wide so people can see enough to know of they want to see the picture but some of the actual pictures are gi-normous. ... The web album generator produces a thumbnail picture 2kb to 3kb for each picture plus a HTML file 2kb in size. ...
    (uk.people.silversurfers)
  • Re: make pictures look good in PowerPoint 2003 using 256 colors -
    ... Explorer is doing the color reduction to 256 colors ... but it's not displaying the image pixels one-to-one against screen pixels the way ... > at which the pictures were pasted -- the BMP setting made it come in a bit ... You'll need to back up to Photoshop and tell it not to do any dithering. ...
    (microsoft.public.powerpoint)
  • Re: Bayer sensor and MX
    ... pictures taking more pictures of the same scene does not make ... In theory this method can even make pictures sharper, ... Bleu = /2 from the up and down bleu. ... (In general sharpening subtracts a little bit of pixels laying further away). ...
    (rec.photo.digital.slr-systems)
  • Re: Bayer sensor and MX
    ... pictures taking more pictures of the same scene does not make ... In theory this method can even make pictures sharper, ... Bleu = /2 from the up and down bleu. ... (In general sharpening subtracts a little bit of pixels laying further away). ...
    (rec.photo.digital.slr-systems)
  • Re: Open Common Dialog with thumbnail view
    ... I don't use it within my Access apps but it's great for viewing pictures and thumbnails. ... Can I use Irfanview from within Access to select pictures? ... I need to save the path to Images for certain records. ... Not sure if this is anything you want to do but...I opened up my thumbnail jpgs in Irfanview and selected a few and had Irfanview make an html page of them. ...
    (comp.databases.ms-access)