-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfrmMatrix.frm
More file actions
52 lines (47 loc) · 1.37 KB
/
frmMatrix.frm
File metadata and controls
52 lines (47 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
VERSION 5.00
Begin VB.Form frmMatrix
Caption = "Form1"
ClientHeight = 3615
ClientLeft = 60
ClientTop = 345
ClientWidth = 3255
LinkTopic = "Form1"
ScaleHeight = 241
ScaleMode = 3 'Pixel
ScaleWidth = 217
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdGetMatrix
Caption = "Get Matrix"
Height = 435
Left = 780
TabIndex = 1
Top = 3180
Width = 1635
End
Begin VB.PictureBox picMatrix
Height = 3075
Left = 60
ScaleHeight = 201
ScaleMode = 3 'Pixel
ScaleWidth = 205
TabIndex = 0
Top = 60
Width = 3135
End
End
Attribute VB_Name = "frmMatrix"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Base 1
Private Sub cmdGetMatrix_Click()
Dim i As Integer
Dim j As Integer
picMatrix.Cls
For j = 1 To UBound(BMPMatrix, 2)
For i = 1 To UBound(BMPMatrix, 1)
picMatrix.PSet (i, j), RGB(CurrPalette(BMPMatrix(i, j) + 1).R, CurrPalette(BMPMatrix(i, j) + 1).G, CurrPalette(BMPMatrix(i, j) + 1).B)
Next i
Next j
End Sub