Frame or block an image after resize

  • Thread starter Thread starter Terry Williams
  • Start date Start date
T

Terry Williams

Let me see If I can explain this correctly.

This is in VB.NET, an web application

Say I have an image that I want to be displayed at 140px x 140px.

Someone uploads an image 300px x 150px, I know how to resize the image,
but I want to take the short side and pad it with white space, so the
image is perfectly blocked.
 
Hi Terry,

In the resource kit are some samples, that shows it.

One of the problems with a image on a webpage that you cannot show it as an
bytearea.
(You can but that are those pages with only a picture).

And therefore you can as far as I know only do something with an image in
Net in a windowsform, however it is greath stuff to try.

If you want to fit a bytearray image in a page, I have a sample for that if
you want it. When you want tell it, than I paste it in.

But here the resource kit look to the " how to manipulate GDI sample",
remember that this are only the easy samples, when you go further you have
to look at the "encoder" class.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing it

http://msdn.microsoft.com/vbasic/vbrkit/faq/#installvdir
I hope this helps a little bit?

Cor
 
* Terry Williams said:
This is in VB.NET, an web application

Say I have an image that I want to be displayed at 140px x 140px.

Someone uploads an image 300px x 150px, I know how to resize the image,
but I want to take the short side and pad it with white space, so the
image is perfectly blocked.

What do you exactly mean with "pad it with white space"? Can you
provide an example in ASCII art here?
 
Back
Top