Image srcImg
=
Image.FromFile(
"
E:/Seal.bmp
"
);
Clipboard.SetDataObject(srcImg);
IDataObject raw = Clipboard.GetDataObject();
Image bmp = (Image)(raw.GetData( typeof (Bitmap)));
Graphics g = Graphics.FromImage(bmp);
SolidBrush pen = new SolidBrush(Color.Blue);
Font font = new Font( " Arial " , 5 , FontStyle.Bold, GraphicsUnit.Millimeter);
int xPos = 10 ;
int yPos = bmp.Height / 2 - 10 ;
g.DrawString( " LeoMaya Passby... " , font, pen, xPos, yPos);
string sPicPath = " E:/sPicPath.bmp " ;
string sPreFix = " E:/sPreFix " ;
Image smBmp = bmp.GetThumbnailImage(bmp.Width, bmp.Height, null , IntPtr.Zero);
smBmp.Save(sPicPath, System.Drawing.Imaging.ImageFormat.Bmp);
bmp.Save(sPreFix + " .bmp " , System.Drawing.Imaging.ImageFormat.Bmp);
Clipboard.SetDataObject(srcImg);
IDataObject raw = Clipboard.GetDataObject();
Image bmp = (Image)(raw.GetData( typeof (Bitmap)));
Graphics g = Graphics.FromImage(bmp);
SolidBrush pen = new SolidBrush(Color.Blue);
Font font = new Font( " Arial " , 5 , FontStyle.Bold, GraphicsUnit.Millimeter);
int xPos = 10 ;
int yPos = bmp.Height / 2 - 10 ;
g.DrawString( " LeoMaya Passby... " , font, pen, xPos, yPos);
string sPicPath = " E:/sPicPath.bmp " ;
string sPreFix = " E:/sPreFix " ;
Image smBmp = bmp.GetThumbnailImage(bmp.Width, bmp.Height, null , IntPtr.Zero);
smBmp.Save(sPicPath, System.Drawing.Imaging.ImageFormat.Bmp);
bmp.Save(sPreFix + " .bmp " , System.Drawing.Imaging.ImageFormat.Bmp);