Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drawing An Icon
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Drawing An Icon
Miscellaneous
Thread ID:
01443812
Message ID:
01443812
Views:
114
I'm drawing an image on the screen. I have a .PNG file that's 24x24. When it draws it's coming out larger. Here's my code:


if (_imgIcon != "" && File.Exists(_imgIcon))
{
imgIcon = Bitmap.FromFile(_imgIcon);
int iHeight = imgIcon.Height;
int iTop = (Height / 2) - (iHeight / 2);
e.Graphics.DrawImage(imgIcon, 2, iTop);
}
>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Reply
Map
View

Click here to load this message in the networking platform