www.pudn.com > Txt-To-Image.rar > frmTest.frm, change:2010-05-12,size:1907b


VERSION 5.00 
Object = "{32C7A6BC-74DA-4F9C-A285-8023780DC1F0}#22.0#0"; "TxtToImg.ocx" 
Begin VB.Form frmTest  
   Caption         =   "test" 
   ClientHeight    =   3090 
   ClientLeft      =   60 
   ClientTop       =   450 
   ClientWidth     =   4680 
   LinkTopic       =   "Form1" 
   ScaleHeight     =   3090 
   ScaleWidth      =   4680 
   StartUpPosition =   3  '窗口缺省 
   Begin VB.TextBox Text1  
      Height          =   2295 
      Left            =   120 
      MultiLine       =   -1  'True 
      TabIndex        =   2 
      Top             =   120 
      Width           =   4335 
   End 
   Begin VB.CommandButton Command1  
      Caption         =   "转换" 
      Height          =   495 
      Left            =   1560 
      TabIndex        =   0 
      Top             =   2520 
      Width           =   1215 
   End 
   Begin TxtToImg.CTxtToImage CTxtToImage1  
      Height          =   495 
      Left            =   1800 
      TabIndex        =   1 
      Top             =   2040 
      Width           =   1095 
      _ExtentX        =   1931 
      _ExtentY        =   873 
   End 
End 
Attribute VB_Name = "frmTest" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Option Explicit 
 
Private Sub Command1_Click() 
    'Call CTxtToImage1.StringToImage("1.txt", "1.gif", 300, "gif", 255, "黑体", 1, 0, 20, 5, 10, 0, 0, 0, 0) 
    Dim ErrTag As Long 
    'ErrTag = CTxtToImage1.txtToImage("1.txt", "1.gif", 300, "gif", "FF0000", "黑体", 1, 0, 0, 1, "000000", 20, 5, 10, 100, 100, 200, 200) 
    ErrTag = CTxtToImage1.StringToImage(Text1.Text, "1.gif", 300, "gif", "FF0000", "华文行楷", 1, 0, 0, 1, "000000", 20, 5, 10, 100, 100, 200, 200) 
    If ErrTag = 1 Then 
        MsgBox "转换成功,保存路径为应用程序路径下的1.jpg文件" 
    Else 
        MsgBox "转换失败" 
    End If 
End Sub