當前位置:首頁 » 操作系統 » 仿qq截圖源碼

仿qq截圖源碼

發布時間: 2022-07-16 23:36:40

① 關於C#的 模仿QQ截圖

哈哈。網上有的你搜索一下,但是好象不怎麼好用

② 誰有仿qq聊天之類的app源碼,最好是java寫的,有即時聊天,語音聊天,圖片發送之類的功能就好

我這有這個的可執行代碼以及源碼,但沒有截圖功能。你拿去參考一下,希望對你有幫助。

③ 哪裡有JAVA寫的類似QQ截圖工具的源代碼

不能立即給你提供源碼 但是可以教給你怎麼實現。
首先 你要截屏 肯定要在屬於用滑鼠圈定一個區域來截取這個區域。

你可以這樣:
先截取當前屏幕的滿屏圖片:new robot().createScreenCapture(r) 這個是截屏代碼 r是Rectangle類型 代表要截取的區域。

然後用 JDialog 做一個無控制條的窗口,大小設置成滿屏,把截取的這個滿屏的圖片貼到這個 JDiaglog 里

然後做一下滑鼠圈定區域,這個很簡單 不詳細說了, 最後對你圈定的這個區域再做一次截屏,這個不就是你要的截圖了。,。 最後別忘了 截屏完畢後 關閉JDialog

你要是覺得這樣做麻煩,也沒別的辦法。 反正我很明白 QQ的截屏也是這樣做的

④ vb求截取區域屏幕圖並保存為文件```的代碼

Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long

Private Declare Function ReleaseDC _
Lib "user32" (ByVal hwnd As Long, _
ByVal hdc As Long) As Long

Private Declare Function BitBlt _
Lib "gdi32" (ByVal hDestDC As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, _
ByVal dwRop As Long) As Long

Private Declare Function StretchBlt _
Lib "gdi32" (ByVal hdc As Long, _
ByVal X As Long, _
ByVal Y As Long, _
ByVal nWidth As Long, _
ByVal nHeight As Long, _
ByVal hSrcDC As Long, _
ByVal xSrc As Long, _
ByVal ySrc As Long, _
ByVal nSrcWidth As Long, _
ByVal nSrcHeight As Long, _
ByVal dwRop As Long) As Long

'首先,在窗體上添加個圖片框PictureBox控制項Name為Picture1
'截取指定位置指定大小的區域,保存到c:\1.bmp文件
Private Sub Form_Load()

Dim hDCtmp As Long

Dim w, h, X, Y

w = 300 ' 要截取屏幕部分的寬度
h = 300 ' 要截取屏幕部分的高度
X = 300 ' 橫坐標 / 左邊界 Left
Y = 300 ' 縱坐標 / 上邊界 Top
Me.Hide
hDCtmp = GetDC(0)
Picture1.BorderStyle = 0
Picture1.AutoRedraw = True
Picture1.Width = w * Screen.TwipsPerPixelX
Picture1.Height = h * Screen.TwipsPerPixelY
Call BitBlt(Picture1.hdc, 0, 0, w, h, hDCtmp, X, Y, vbSrcCopy)
ReleaseDC 0, hDCtmp
SavePicture Picture1.Image, "c:\1.bmp"
Me.Show
End Sub

⑤ c#如何實現類似qq一樣的截圖功能

按快捷鍵後,先把整個屏幕截下來,然後顯示在form1上,form1是一個沒有邊框的窗體,之後最大化顯示form1,開始滑鼠拖坐標,截取坐標內的圖片,保存,

補充:
4年前用vb寫的:

Option Explicit

Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const theScreen = 0
Const theForm = 1

Private Sub Form_Load()
XPForm1.Make
Load Form2
End Sub

Private Sub Form_Unload(Cancel As Integer)
Unload Form2
Unload Me
End Sub

Private Sub HScroll1_Change()
If Picture1.Width > Picture2.Width Then
Picture1.Left = -((Picture1.Width - Picture2.Width) / 100) * HScroll1.Value
End If
End Sub

Private Sub MGButton1_Click()
If Option1.Value = True Then
If Check1.Value = 1 Then
Me.Hide
End If
Call Delay
Call keybd_event(vbKeySnapshot, theScreen, 0, 0)
Call Delay
Form2.Picture = Clipboard.GetData(vbCFBitmap)
Form2.Shape1.Height = 0
Form2.Shape1.Width = 0
Form2.Picture2.Visible = False
Form2.Picture3.Visible = False
Form2.Picture4.Visible = False
Form2.Show 1, Me
ElseIf Option2.Value = True Then
If Check1.Value = 1 Then
Me.Hide
End If
Call Delay
Call keybd_event(vbKeySnapshot, theScreen, 0, 0)
Call Delay
Picture1.Cls
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
Me.Show
ElseIf Option3.Value = True Then
If Check1.Value = 1 Then
Me.Hide
End If
Call Delay
Call keybd_event(vbKeySnapshot, theForm, 0, 0)
Call Delay
Picture1.Cls
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
Me.Show
Else
End If
End Sub

Private Sub Delay()
Dim i As Integer
For i = 0 To 1000
DoEvents
Next i
End Sub

Private Sub MGButton2_Click()
Picture1.Cls
Picture1.Picture = LoadPicture
End Sub

Private Sub MGButton3_Click()
CommonDialog1.DialogTitle = "保存"
CommonDialog1.FileName = ""
CommonDialog1.Filter = "點陣圖文件(*.BMP)|*.bmp|所有文件(*.*)|*.*"
CommonDialog1.FilterIndex = 0
CommonDialog1.ShowSave

If CommonDialog1.FileName <> "" Then
SavePicture Picture1.Image, CommonDialog1.FileName
End If
End Sub

Private Sub MGButton4_Click()
Clipboard.SetData Picture1.Image, vbCFBitmap
End Sub

Private Sub VScroll1_Change()
If Picture1.Height > Picture2.Height Then
Picture1.Top = -((Picture1.Height - Picture2.Height) / 100) * VScroll1.Value
End If
End Sub

⑥ javascript實現qq屏幕截圖源代碼

這個一般是不行的,IE需要配合activeX,chrome需要配合插件,單純的JS不行....

python怎麼實現截圖.類似QQ一樣的

fromPILimportImageGrab
im=ImageGrab.grab()
#可以指定要截取圖片的坐標位置,不帶參數默認全屏截圖
im.save(addr,'jpeg')
#第一個參數是保存路徑,第二個參數是圖片格式

需要先下載一個PIL圖形庫

熱點內容
阿特茲藍天時尚版有哪些配置 發布:2025-01-21 16:32:59 瀏覽:469
怎麼把安卓手機視頻導入蘋果ipad 發布:2025-01-21 16:10:43 瀏覽:997
c語言實現編譯器 發布:2025-01-21 16:03:19 瀏覽:392
做解壓橡皮 發布:2025-01-21 15:03:06 瀏覽:991
雙系統win訪問mac 發布:2025-01-21 14:53:52 瀏覽:485
安卓車機系統如何安裝carplay 發布:2025-01-21 14:52:24 瀏覽:590
sql操作手冊 發布:2025-01-21 14:46:08 瀏覽:312
青橙腳本 發布:2025-01-21 14:44:05 瀏覽:219
東風本田crv時尚版是什麼配置 發布:2025-01-21 14:20:04 瀏覽:219
安卓如何多開軟體每個機型不一樣 發布:2025-01-21 14:15:29 瀏覽:501