C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » Images »

Creating images in .Net


Posted Date: 13 Aug 2009    Resource Type: Code Snippets    Category: Images
Author: Anil Kumar PandeyMember Level: Diamond    
Rating: 1 out of 5Points: 7



Creating images in .Net



Creating images in .Net is not a big task.This can be done using a bitmap object & graphics object. Using thease objcts we can create our own images or any graphicle objects.


Public Void CreateImage()
{
System.Drawing.Bitmap objBMP = new System.Drawing.Bitmap(1500, 600);

System.Drawing.Graphics objGraph = System.Drawing.Graphics.FromImage(objBMP);
objGraph.Clear(System.Drawing.Color.Gray);
objGraph.DrawString("Hello Anil.", new System.Drawing.Font("Courier", 10), Brushes.Green, 70, 90);
objBMP.Save("D:\\Anil\\Sample.bmp", System.Drawing.Imaging.ImageFormat.Bmp); //Please provide your path here tp save the image
}


Thanks
Anil Kumar Pandey



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Image  .  Graphics Object  .  Create Images  .  Bitmap  .  Anil Pandey  .  Anil Kuamr Pandey  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Resize the image
Previous Resource: Jquery Image slidShow
Return to Discussion Resource Index
Post New Resource
Category: Images


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use