Bitmap Image Graphics

Bitmap Image  Graphics

private void DrawImagePointF(PaintEventArgs e)
{

    // Create image.
    Image newImage = Image.FromFile("SampImag.jpg");

    // Create point for upper-left corner of image.
    PointF ulCorner = new PointF(100.0F, 100.0F);

    // Draw image to screen.
    e.Graphics.DrawImage(newImage, ulCorner);
}

posted on 2015-07-20 11:36  软件开发学习分享  阅读(197)  评论(0编辑  收藏  举报