Print Page | Close Window

GetImage Icons are 16 colors not 256

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=15827
Printed Date: 02 December 2024 at 6:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetImage Icons are 16 colors not 256
Posted By: XiMaker
Subject: GetImage Icons are 16 colors not 256
Date Posted: 11 December 2009 at 1:38pm
I'm using the Command Bars to add Tabs to my MDI workspace and including Icons from the selected item in the TaskPanel control. I am using the CommandBars.Icons.GetImage(Control.IconId, 32) to get the icon from the command bars and passing that through a subroutine

Function Add2(tClass As String, img As ImageManagerIcon) As Boolean

- in this routine I am setting the child MDI form Icon using the img that was passed from the commandbars

Set frmP.Icon = img.CreatePicture(xtpImageNormal)

the image shows but for some reason the image is only 16 colors instead of 256 - is there anything I should be doing differently

Thanks



Replies:
Posted By: Oleg
Date Posted: 14 December 2009 at 6:21am
Hi,
Attach little sample with Icon you tried. Icon file you load can have 16*16 and 256*256 color - try to remove 16*16.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net