[DEVELOPMENT ENVIRONMENT]

* NEW: Make better module icons.


git-svn-id: svn://localhost/gambas/trunk@1928 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2009-04-11 23:20:57 +00:00
parent 5b6b908f2b
commit 8641a81db2
9 changed files with 2 additions and 6 deletions

View file

@ -554,12 +554,8 @@ Private Sub MakeModuleIcon(sModule As String, Optional iSize As Integer) As Pict
hPict = Picture[sKey]
If Not hPict Then
hImage = $hFileImage.Stretch(iSize, iSize)
If iSize = 16 Then
hImageModule = Image.Load("img/module" &/ sModule & "-16.png")
Else
hImageModule = Image.Load("img/module" &/ sModule & ".png").Stretch(iSize, iSize)
Endif
hImage.Draw(hImageModule, 0, 0)
hImageModule = Image.Load("img/module" &/ sModule & ".png") '.Stretch(iSize / 2, iSize / 2)
hImage.Draw(hImageModule, iSize / 4, iSize / 4, iSize / 2, iSize / 2)
hPict = hImage.Picture
Picture[sKey] = hPict
Endif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 964 B