KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Base64 ToolbarButton Transparency help needed

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Thu Jun 14, 2007 9:17 pm    Post subject: Base64 ToolbarButton Transparency help needed Reply with quote

Hi, I'm finally jumping on the KF.NET and Base64 bandwagon. I'm learning a lot from reading this forum and downloading the sample scripts.

Anyway, I'm creating a toolbar that allows 32x32 icons. I have a 48x48 png file that I want to use as one of the icons. However, when resizing the png file to 32x32 and force it to be transparent, it doesn't look clean. If I don't make it transparent, it looks fine except the black background. I've attached the original png file. If someone can direct me to a program to use to resize the png file, please let me know. I'm currently using Irfanview.

Code:

Break On
$System = CreateObject("KiXforms.System")

$imglstSide = $System.ImageList
$imglstSide.ImageSize = $System.Size(32,32)
$imglstSide.ColorDepth = $System.ColorDepth_Depth32Bit

$nul = $imglstSide.Images.AddStrip($System.Bitmap.FromBase64String(ReloadImage()))

$frmMain = $System.Form()
$frmMain.Font = $System.Font("Tahoma",8.25,0)
$frmMain.Size = $System.Size(125, 125)
$frmMain.StartPosition = 1

$tbarSide = $frmMain.Controls.Add($System.ToolBar())
$tbarSide.Dock = 1
$tbarSide.ImageList = $imglstSide

$tbtnAdd = $tbarSide.Buttons.Add($System.ToolBarButton())
$tbtnAdd.ToolTipText = "Reload"
$tbtnAdd.ImageIndex = 0

$frmMain.Show
While $frmMain.Visible
   $=Execute($System.Application.DoEvents)
Loop

Function ReloadImage()
$ReloadImage = "
SUkqAAgMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAQeNsuVdleRBftFVitVilNpdkNeuyOv/////////////////
///////////////////////A0+5bj9dlldlZjNNFfs5eld6MsOMAAAkAAAAAAAAAAAAAAAAA
AAAAAAA1S2qfy/8tcNBbkNeBqOBHgtGNsuL////////////////o8PnX5PXZ5fXl7vj//v//
//////////+lwelekddZjdRMg9Awccqdx/82TWsAAAAAAAAAAAAAAAAAAAAAAAKVr9FJi+My
csx4o93///+yyu3r8Pr////////3+v2vyeuVt+Sdu+edvOeWtuSlwern7fj////////7/P9u
m9xRiNJQhtE4dclGhtqVrtAAAAAAAAAAAAAAAAAAAAAaKDulxO8jbNE4d85ZjtX/////////
///////5+v12odyJruOZuuafvOifvOiau+aNseR3otz7+/3////////I2fBNhdFRhtE/essi
Z8ikwO0bKT4AAAAAAAAAAAAAAABFW3+Hs/Inbc09ec9IgdHy9vz////////////r8fp0oN2C
qeCUtOSWueaWueaWtuWQs+SBp9+NseSfveeYuueGq+FMhNBOhNBAesokaMaFsOxDXX8AAAAA
AAAAAAAAAABngqttpe8nbcw+etA0dc3f6Pb///////////////////+pxOmHruKNseKNseKL
sOOGrOKAqd9yn91ekddKhNJsm9pBe85Ng88+esklZ8RtoOVmgqkAAAAAAAAAAAAAAAByjrNk
musnbMs+es8vcszY4/T////////d5vakweiIreB9puCAqOCEq+GEq+GDquF+pt9wntpZjdZa
jtbF1vH///80cstEfc09eMglZsNiluBzjLEAAAAAAAAAAAAAAABzjrNgmuoiaMo5d842ds6C
qeCEqeBBftBIgtJbj9hpmdtynt14ot17pd97pd90n9xol9t2ot7I2fH///////////9ajdM3
dck3c8ggZMBfk91xjLIAAAAAAAAAAAAAAABng6xooeweZck3ds09es47es4+fM5EftBRiNRe
kNhpmdpwnNxznttzn91zn91vm9qjwej////////////+/f3///+Psd4nasY0csUcYL5mmeBm
g6oAAAAAAAAAAAAAAABFXICCsPASXskwcc07ec8zdM5yoN2CquGFrOFqmNpRiNNilNhlltln
l9pnl9phk9hPh9NQh9Pn7vn////8/Pz///7N3O0dY8IrasMSV7l+quRFXIEAAAAAAAAAAAAA
AAAcKz2jxO4LWckpbco1dcwrbsq/0u7////////19v0xc8xQiNVjlNhrmdprmdpilNhKhNMz
dc75+vz///7//////////vo2cskgYr8JU7igvuccKj0AAAAAAAAAAAAAAAAAAAKXrtEwd9oa
Y8Yvb8wnbMtCfdL5+/z////////Y5fdzn9xTidVbkdZbkdZVitaCquDx9fv////////V4fA4
dMi2y+ZOg8sSV7gub8iWrc8AAAMAAAAAAAAAAAAAAAAAAAA2TG2NwP8PXMQlackrb8shaMp/
qeH//////////////v/U4fS60O62zO7T3/T///3///////////9cjdIUXcAgZcIbX7wIULSL
t/M3Tm0AAAAAAAAAAAAAAAAAAAAAAAAAAgmJruNAgNoWX8UkZ8ckaccTXcOlwOj/////////
//////////////////////7///7//vyCpdkUXMAkZ8IiZL4RV7ZAesuIrN0AAg0AAAAAAAAA
AAAAAAAAAAAAAAAAAABCW3yZwPMKWscXX8MjZ8csbslAe8+Eqd////7///////////////7/
//7////5+Pl0m9c8eMotbcQjZL8UWbgLUreWuulDWXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAABWcJSJt/YbZMYYX8EzcspMg9BOhtBcj9SMr9/K2O7d5fLc5PHG1+yFqNxajNBPhM1K
gMsxbcAWW7gZWraKsepYcZMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQeBoM2K
ufYQXMUtbcdNg85gkdJ1nth+pNqKr96Or9+Or96Lrdx+o9pznNVfjc5MgMgpZr0OV7eIset+
ncoABAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgZacpWmxvVeld5Efsxd
jM96o9iNrd2ivuKyx+ayx+SiveCKqth4m9JXhcY/dcBcjM+jwutZcpUAAwgAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIYoWdvOW11/93o+RwnNiDp9meuN+1
x+K0yOGatNp8odBpk81wnNew0PucueJJYoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ49VXOgttTB1/TA2fjH3PfN4PfM3/XE2fa81PTA
1PKittQ9VXQAAhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAIcK0JGYIVmg61wirNxirNng65FYYQbLEMAAAIAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAPAAABAwABAAAAIAAAAAEBAwABAAAAIAAAAAIBAwADAAAAwgwAAAMBAwABAAAAAQAAAAYB
AwABAAAAAgAAABEBBAABAAAACAAAABIBAwABAAAAAQAAABUBAwABAAAAAwAAABYBAwABAAAA
VQAAABcBBAABAAAAAAwAABoBBQABAAAAyAwAABsBBQABAAAA0AwAABwBAwABAAAAAQAAACgB
AwABAAAAAgAAADEBAgAKAAAA2AwAAAAAAAAIAAgACAAAAABIAAAAAQAAAEgAAAABSXJmYW5W
aWV3AA=="
EndFunction



reload.png
 Description:
 Filesize:  3.95 KB
 Viewed:  11456 Time(s)

reload.png


Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jun 15, 2007 12:50 am    Post subject: Reply with quote

Heres a script that actually does the re-sizing using kf.net ... check it out ... not sure if the results are "satisfactory" or not.

The base64 bitmap string in this script is the original 48x48 icon you provided. Once converted - could maybe even save it back to a png file.

Code:

Break On

$System = CreateObject("KiXforms.System")

$imglstSide = $System.ImageList
$imglstSide.ImageSize = $System.Size(32,32)
$imglstSide.ColorDepth = $System.ColorDepth_Depth32Bit

$image = $System.Bitmap.FromBase64String(ReloadImage())

$image = ResizeImage($image,32,32)

$nul = $imglstSide.Images.AddStrip($image)

$frmMain = $System.Form()
$frmMain.Font = $System.Font("Tahoma",8.25,0)
$frmMain.Size = $System.Size(125, 125)
$frmMain.StartPosition = 1

$tbarSide = $frmMain.Controls.Add($System.ToolBar())
$tbarSide.Dock = 1
$tbarSide.ImageList = $imglstSide

$tbtnAdd = $tbarSide.Buttons.Add($System.ToolBarButton())
$tbtnAdd.ToolTipText = "Reload"
$tbtnAdd.ImageIndex = 0

$frmMain.Show
While $frmMain.Visible
   $=Execute($System.Application.DoEvents)
Loop

Function ResizeImage($image,$width,$height)

 Dim $Graphics

 $ResizeImage = $System.Bitmap.FromSize($System.Size($width,$height))

 $Graphics = $System.Graphics.FromImage($ResizeImage)

 $Graphics.DrawImage($image, 0, 0, $ResizeImage.Width, $ResizeImage.Height)

EndFunction

Function ReloadImage()
$ReloadImage = "
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAA
B3RJTUUH1wISETIOVBP6cgAAD3BJREFUaIHtWmlwndV5fs75lvvdTcvVblkStiy8SMiyjY3B
diwwdogDngBxgRQmYTrJL9qQ0M5k+qND23T6i5Q0bWfaH5mWaZOCWNwm2JQQEJtt7CAbyzay
JC+Sta9Xd/2Ws/TH+e7VvbJk6IS2f3Jm3jmfzr3fOc/znnc75wr4Xftd+60a+SImaT38rKll
Fu7QCD0giL4LUqwnkGUS3CJCElA9C0LjEuQSlexDLsWbPFT60YWuZ93/VwLtDzy9lUB/mhI8
2NLcIls2bgw1rarRaipLEA2ZCJo6ACDrMiTTLqbmEh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OZm+enY2EC49Njw2s49zHj68r1WLBHXMJl1olCBgAKaugFsmRdCgCJnUvyNV1aTjMbgeh+0y
2C6D4zLYLgfAsXNjBQ5srUb3+yfd9999e2zuet+Dgye6+qA2mRbgFEuBLkfAWE7i44OZ9Ni1
rjQJV/ZeuNCyvrlRu2/HamIZVAGR/k9MGmBogK5JmBogpUDW9dQtdAF4U6fY1BTF/q21mJ+d
lT/7+Yvu5csDr119v+vb08M9s1D+uZwUkVjqxNQHrPtiLNfXb/pSW6xpyw9qqis33XPPPvP2
1jWECYl42oPtMkghQYmAoanQ6TJVrBFCYBk6yqMmDJ3gNxeG5NvvvONOTc72zQ6d/euxT7t7
ATAA3gp97jlPYrkolNP6UuA3jNVu2NUWW932mBWM7t24vkW2tW2y1jbWkLqKCErDJgKGBgkJ
xxNYSDkYn0niyvUpef7iRbuvb4Da2VT3wkjvv4/2He9dAfRKYyvuQK6tqP1lnnXdigarm7e1
R2MNd+jB8tuopjVQSiJEChMAJKGuBElxz7vuZefOZ+dGTo5f/vgcs5PZAs0up+nl+qL2WTf6
2hICWgFwraAvFAI/whbMn7twE37Plwgr6HPPhcCXTWKfh0Bhy0WDHBGtYIwukULwuVZIolB4
QZ8Dnhv7zPZF/K9ETuOFwAulEHyh5AisGOM/T/tvUXEFLBodZnMAAAAASUVORK5CYII="
EndFunction

Back to top
View user's profile Send private message
pearly
KiXforms Aficionado
KiXforms Aficionado


Joined: 27 Jan 2004
Posts: 332

PostPosted: Fri Jun 15, 2007 4:15 pm    Post subject: Reply with quote

Thanks Shawn! I think the PNG file isn't a good of a quality originally, so I am going to look for another PNG file and ResizeImage as shown in your example.

Thanks again!
Back to top
View user's profile Send private message
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Jun 15, 2007 5:42 pm    Post subject: Reply with quote

Yea - its always nice to be able to find the exact size of image your looking for. Never seem to get good results expanding or shrinking images to fit (especially shrinking).
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group