| |   Skin:   
      User: Not logged in 
Newsletter Signup
XSLT Library
Latest XML Blogs
Featured Examples
Featured Articles
Book Chapters
Training Courses
Sign In
My Profile
My Articles
My Examples
My Favorites
My Resources
Add a Resource
About Me
My Blog
HeadGeek Articles
Talking Portfolio
World Trip Pics

.net 2.0 Image Transformation Helper
Author: Duray AKAR
Published: 4/26/2006 12:47 PM
Category: ASP.NET, C#, VS.NET
Summary: I have been using the most addvanced technology of all times, copy & paste, for my bitmap transformations. Recently I have wrapped my functions in a Helper class...


Bitmap transformations can be clumsy.

Here is a helper class that uses the namespaces below, and does most of the common image transformation tasks, including grayscale, (or REDscale for that matter :)), resize, append a border, draw one image on another etc... 

I will also post a sample ASP.NET page that utilizes this class in the future...

using System.Drawing;
using System.Drawing.Imaging;
using System.Drawing.Drawing2D;

Hope it helps.


PS: Getting the actual number of bytes is another tricky part. you cannot get it from the bitmap or image object, you need to save it to a temporary stream first, which I opt for NOT doing it for performance reasons.

If anybody is aware of a neat way, let me know.


Fans of "The Office"
Dwight Bobbleheads are here!
  “It's me! I'm the bobblehead! Yes!”

Advertise on XMLPitstop

Advertise on XMLPitstop

EggHead Cafe
Web Servicee development
Buy text ads here!
Color Laser Printer
online business degree
Marc jacobs sunglasses
Skype vs. sipcall
VoIP Internettelefonie
Buy text ads here!

Interested in Text ads?
2,218 Total Members
33 members(last 30 days)
6 members(last 7 days)
0 members(today)

1,609 Total Discussions
14 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

17,054 Total Blog Posts
1,739 Blogs(last 30 days)
223 Blogs(last 7 days)
0 Blogs(today)

8,699 Newsgroup Posts
0 Posts(last 30 days)
0 Posts(last 7 days)
0 Posts(today)

13,785 Total Resources
4 Resources(last 30 days)
1 Resources(last 7 days)
0 Resources(today)


David Silverlight's| 2801 Florida Ave #225|Miami, FL 33133|Ph:305-447-1139