Live Chat Icon For mobile
Live Chat Icon

How do I extract a Bitmap from an icon of a specific size

Platform: WinForms| Category: Bitmaps and Images
	Icon icoClose;

	// Initialize this icoClose from the resource (for example). Code omitted.
	… … …
	// Now create a new icon off this base icon with the required size (18 X 18) in this case.
	Icon icoClose18By18 = new Icon(icoClose, 18, 18);
	// Create a bitmap off this icon.
	Bitmap bmpClose = icoClose.ToBitmap();

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.