 |
|
อยากรู้ความหมายของโค้ด VB อันนี้อ่ะคะ ^^ อยากทราบว่าโค้ดแต่ละบรรทัดมันมีความหมายยังไงอ่ะคะ |
|
 |
|
|
 |
 |
|
'ScreenBounds เก็บคุณสมบัติต่างๆ ของหน้าจอแสดงผล
Dim ScreenBounds As Rectangle = Screen.PrimaryScreen.Bounds
'screenshot เก็บภาพโดยมีความกว้างและความสูง เท่ากับ ScreenBounds และเ็ก็บในรูปแบบ 32 bit RGB
Dim screenshot As System.Drawing.Bitmap = New System.Drawing.Bitmap(ScreenBounds.Width, ScreenBounds.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb)
'graph นำเอา screenshot มาเลือกเอาขนาด และตำแหน่งภาพ screen ที่ต้องการ
Dim graph As Graphics = Graphics.FromImage(screenshot)
graph.CopyFromScreen(ScreenBounds.X, ScreenBounds.Y, 0, 0, ScreenBounds.Size, CopyPixelOperation.SourceCopy)
'นำ screenshot แสดงผลใน PictureBox1
PictureBox1.Image = screenshot
|
 |
 |
 |
 |
Date :
2009-08-07 10:42:02 |
By :
In Mind ART |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ช่วยบอกควมหมายของโค้ด VB ให้หน่อยครับแปลไม่ได้เลย
ขอเยอะๆนะครับ
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
2009-09-24 19:36:09 |
By :
โจ้ |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|