⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpgtodat.frm

📁 jpeg解码程序
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "超级大苹果"
   ClientHeight    =   840
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   1725
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   840
   ScaleWidth      =   1725
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   360
      Top             =   0
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command1 
      Caption         =   "苹果"
      Height          =   780
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   1695
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Long
Dim dd As Byte
Private Sub Command1_Click()
Dim s1 As String
Dim s2 As String
CommonDialog1.ShowOpen
s1 = CommonDialog1.FileName
CommonDialog1.ShowOpen
s2 = CommonDialog1.FileName
Open s2 For Output As #2
i = 1
Print #2, "const unsigned char JPGBUFF[]="
Print #2, "{"
Open s1 For Binary As #1
 Do While Not EOF(1)
  Get #1, i, dd
  i = i + 1
  ha = Hex(dd)
  ha = "0x" & ha & ","
  Print #2, ha
 Loop
Close #1
Print #2, "};"
Print #2, "//" & i - 2
Close #2
MsgBox "ok"
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -