·  Start ·  Programme ·  Codes ·  Tipps ·  ActiveX ·  Tutorials · 



Sie benötigen eine Form, eine Picturebox und zwei Commandbuttons.

Private Sub Form_Load()
    Picture1.AutoRedraw = True
    Picture1.AutoSize = True
    Picture1.Picture = LoadPicture("D:\beispiel.jpg")
    Command1.Caption = "Speichern"
    Command2.Caption = "Schreiben..."
End Sub

Private Sub Command1_Click()
' Speichern (Bild und Text)
    Picture1.Picture = Picture1.Image 'zuweisen des Images!
    SavePicture Picture1.Picture, "D:\test.bmp"
End Sub

Private Sub Command2_Click()
' Schreib etwas in das Bild
    With Picture1
        .CurrentX = 20
        .CurrentY = 100
        .FontBold = True
        .FontSize = "18"
        .FontName = "Arial"
        .ForeColor = vbRed
    End With
 
    Picture1.Print "Hallo Visual Basic!"
End Sub
Aktualisiert: 12.02.2008, 14:10 Uhr Copyright © 2001 - 2010 by ST-software Navigation zurück  |  Navigation vorwärts  |  Zum Seitenanfang     
Ihre IP: 38.107.191.82 ·  Seite erstellt in: 0.690 Sekunden ·  Dateigröße:  2720 Bytes