Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drawing An Icon
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Drawing An Icon
Divers
Thread ID:
01443812
Message ID:
01443812
Vues:
113
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
Répondre
Fil
Voir

Click here to load this message in the networking platform