IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası

IRCForumları - IRC ve mIRC Kullanıcılarının Buluşma Noktası (https://www.ircforumlari.net/)
-   Visual Basic (https://www.ircforumlari.net/visual-basic/)
-   -   3 Boyutlu Çizim Yapmak (https://www.ircforumlari.net/visual-basic/124425-3-boyutlu-cizim-yapmak.html)

Cemalizim 19 Temmuz 2008 16:49

3 Boyutlu Çizim Yapmak
 
PHP- Kodu:

Option Explicit
Dim X1 
As SingleY1 As SingleX2 As SingleY2 As SingleLineOffSet As Integer
Private Sub Form_MouseDown(Button As IntegerShift As IntegerAs SingleAs Single)
    
LineOffSet 20
    X1 
X
    Y1 
Y
End Sub

Private Sub Form_MouseMove(Button As IntegerShift As IntegerAs SingleAs Single)
    If 
Button 1 Then
        DrawMode 
6
        
If Option1(0Then
            Line 
(X1Y1)-(X2Y2)
        Else
            
Line (X1Y1)-(X2Y2), , B
        End 
If
        If 
Check1 Then
            
If Option1(0Then
                Line 
(X1 LineOffSetY1 LineOffSet)-(X2 LineOffSetY2 LineOffSet)
                
Line (X1 LineOffSetY1 LineOffSet)-(LineOffSetLineOffSet)
            Else
                
Line (X1 LineOffSetY1 LineOffSet)-(X2 LineOffSetY2 LineOffSet), , B
                Line 
(X1 LineOffSetY1 LineOffSet)-(LineOffSetLineOffSet), , B
            End 
If
        
End If
        If 
Option1(0Then
            Line 
(X1Y1)-(XY)
        Else
            
Line (X1Y1)-(XY), , B
        End 
If
   
End If
   
X2 X
   Y2 
Y
   Caption 
"X - " "   Y - " Y
End Sub

Private Sub Form_MouseUp(Button As IntegerShift As IntegerAs SingleAs Single)
    
DrawMode 13
    
If Option1(0Then
        Line 
(X1Y1)-(X2Y2)
        If 
Check1 Then Line (X1 LineOffSetY1 LineOffSet)-(LineOffSetLineOffSet), &HC0C0C0
    
Else
        
Line (X1Y1)-(X2Y2), , B
        
If Check1 Then Line (X1 LineOffSetY1 LineOffSet)-(LineOffSetLineOffSet), &HC0C0C0B
    End 
If
End Sub

Private Sub mnuFileSub_Click(Index As Integer)
    
Dim FileName As String
    Select 
Case Index
        
'Print
        Case 0
            Printer.PaintPicture Board.Image, 0, 0
            Printer.EndDoc
        '
Save
        
Case 1
            FileName 
InputBox("Name of file to save to""Save Graphic"App.Path)
            If 
FileName App.Path Then
                MsgBox 
"Bad File Name!"48
                
Exit Sub
            
Else
                
SavePicture Board.ImageFileName
            End 
If
        
'Exit
        Case 2
            End
    End Select
End Sub 

ALıntıdır


Tüm Zamanlar GMT +3 Olarak Ayarlanmış. Şuanki Zaman: 05:33.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO
Copyright ©2004 - 2025 IRCForumlari.Net Sparhawk