Sign in to follow this  
Followers 0
tomashen

image saving properties for "transparent guis"

3 posts in this topic

#1 ·  Posted (edited)

um maybe this isnt the right place for this but since im asking this for autoit i tihnk it is right place :oops:

my problem is that when i save my bmp

make baground pink....

here is wat i get when i open it in gui

Posted Image

i get that pink outline around the character of an mmo game...(i just took a quick sample of this image im not making bots or anything!HONESTLY!)

so any clues how to remove the pink around this dude? :rip:

maybe there is a specific properties to save bmp.. ? bcz i had this image with the example script and it shows fine like this

Posted Image

i found the script here in forums...

code is like this

Global Const $WM_POPUP=0x80000000
Global Const $WS_EX_CONTROLPARENT=0x00010000
Global Const $WM_CTLCOLORDLG=0x0136

Func Set_BG($hWin,$Msg,$wParam,$lParam)
    Return $hBMP[0]
EndFunc

$BG=@ScriptDir&"\my.bmp"
;~ $BG=@ScriptDir&"\pen.bmp"
;~ $BG=@ScriptDir&"\fbi.bmp"

$MSkin=@ScriptDir&"\MakeSkin.dll"

$hWnd=GUICreate("SSkins",400,400,-1,-1,$WM_POPUP,$WS_EX_CONTROLPARENT)

;pen.bmp
$Me=GUICtrlCreateButton("Click Me!",25,295,70,30)
GUICtrlSetFont(-1,10,800,0,"Arial")
$Exit=GUICtrlCreateButton("E x i t",230,300,55,25,1)
GUICtrlSetFont(-1,12,800,0,"Arial")
;~ $hTestButton = GUICtrlCreateButton("Next BMP", 140, 50, 70, 30)

;kkitty.bmp  Set Width to 452 on GUICreate
;$Exit=GUICtrlCreateButton("E x i t",222,284,55,25,1)
;GUICtrlSetFont(-1,12,800,0,"Arial")
;$Me=10

;fbi.bmp
;$Me=GUICtrlCreateButton("Click Me!",50,368,70,25)
;GUICtrlSetFont(-1,10,800,0,"Arial")
;$Exit=GUICtrlCreateButton("E x i t",225,368,55,25,1)
;GUICtrlSetFont(-1,12,800,0,"Arial")

;~ SplashTextOn("","Making Skin......",300,100,-1,-1,33,"Arial",24,800)
$hBMP=DllCall($MSkin,"hwnd","Make_Skin","hwnd",$hWnd,"str",$BG)
;~ SplashOff()

GUIRegisterMsg($WM_CTLCOLORDLG,"Set_BG")
GUISetState()

While True
    Switch GUIGetMsg()
        Case -3,$Exit
            Exit
        Case $Me
            MsgBox(0,"Clicked Me","Hi, From Simple Skins",2)
    EndSwitch
WEnd

i would appreciate any help :D thnx

!! I DO NOT TAKE ANY CREDITS FOR THE SCRIPT !!!
Edited by tomashen

Proud of AutoIt Proud of MySelf :)

Share this post


Link to post
Share on other sites



The problem is with your image editor, not your code. If you look very closely at the generated image:

Posted Image

you will see there are many shades of pink, none of which match the color used to flag transparency.

Share this post


Link to post
Share on other sites

Yep!,

I agree with VeryGary,

You should be using Photoshop or other image editing software to do this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0