小工具整理
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
ImageFileName = "C:\Users\ab\Desktop\2.jpg"
|
||||
SaveFormat = (DotNetClass "System.Drawing.Imaging.ImageFormat").jpeg --ÓÐpng bmp gif icon tiff jpeg µÈµÈ³£Óøñʽ
|
||||
start_posX=-1157
|
||||
start_posY=288
|
||||
picwidth=800
|
||||
picheight=400
|
||||
leftright_offset=0
|
||||
updown_offset=0
|
||||
|
||||
ScreenBitmap = dotnetobject "System.Drawing.Bitmap" picwidth picheight (dotnetclass "System.Drawing.Imaging.PixelFormat").Format32bppPArgb
|
||||
|
||||
Graphics = (dotnetclass "System.Drawing.Graphics").FromImage ScreenBitmap
|
||||
|
||||
|
||||
Graphics.CopyFromScreen start_posX start_posY leftright_offset updown_offset ScreenBitmap.Size (dotnetclass "System.Drawing.CopyPixelOperation").SourceCopy
|
||||
|
||||
|
||||
ScreenBitmap.Save ImageFileName SaveFormat
|
||||
|
||||
Reference in New Issue
Block a user