| |
|
|
H.Brill | Hi, have time a Question Images or. Icons. there it Icons How sand on the sea gives, have I me time one Program written, the a Ordner with icons einliest and these then as Bilderliste (Toolbar) in a .bmp save. target ought to his, that I me The work with a Malprogramm save.
Herausgekommen is that here :
Declare lever btn1, btn2, lb
Declare Long end, String File, ordner
end = 0
File = $PROGDIR + "\Images.bmp"
Window 600, 400
btn1 = Create("Button", %HWnd, "Ordner", 10, 10, 60, 25)
btn2 = Create("Button", %HWnd, "Ende", 80, 10, 60, 25)
lb = Create("Listbox", %HWnd, 0, 10, 50, 450, 200)
WhileNot end
WaitInput
If Clicked(btn1)
ordner = $ ChooseDir(%HWnd, "Ordner wählen", "C:\", 3, "")
If ordner <> ""
CHDIR ordner
ClearList
AddFiles "*.ico"
If %GetCount > 0
ClearList lb
Move("ListToHandle", lb, ordner)
InsertImages(lb)
EndIf
Else
MessageBox("No Ordner select !", "Error !", 0)
EndIf
ElseIf Clicked(btn2)
end = 1
EndIf
Case %Key = 2 : end = 1
EndWhile
Proc InsertImages
Parameters lever list, String way
Declare Long x, y, g
x = 1
y = 1
g = GetCount(list) * 32
Mcls g, 32
StartPaint -1
WhileLoop 0, GetCount(list) - 1
DrawPic way + GetString$(list, &LOOP), x, y; 0
Inc x, 32
EndWhile
EndPaint
StartPaint -1
SaveBmp ordner + "Images.bmp", 0, 0 - g, 32
EndPaint
MessageBox("Datei : " + ordner + "images.bmp \ngespeichert !", "Info !", 0)
ENDPROC
End
the functions too so wonderful. mere, if I The Bitmap with the Reshacker import, get The individual Bildchen a pink Teint and go too so subsequently in my Program displayed.I show tappt im dunkeln as Toolbar on. load I The Bitmap one Malprogramm, go The Bildchen integrally normal displayed.
Why could the lying ? |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 08/21/17 ▲ |
|
|
|
|
Jörg Sellmeyer | could you the pink in the Reshacker as Transparenzfarbe define? alternatively can you Yes in Profan The Transparenzfarbe take on. optional the left downstairs Pixel or a spare wählbare Colornummer. |
|
|
| |
|
|
|
ByteAttack |
|
|
| |
|
|
|
H.Brill | it has on the Save lain. The Bitmap watts in 24bit stored. Have tappt im dunkeln now in Paint in 256 colours stored. PS: byte-Attack : The with your Toolbarmaker gespeicherte Bitmap becomes too pink in the ResHacker displayed.
the only, what helps, is How said in Paint loading and as 256 colours-Bitmap again Save. |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 08/22/17 ▲ |
|
|
|