Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - GetImage Icons are 16 colors not 256
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetImage Icons are 16 colors not 256

 Post Reply Post Reply
Author
Message
XiMaker View Drop Down
Groupie
Groupie
Avatar

Joined: 11 December 2009
Location: United States
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote XiMaker Quote  Post ReplyReply Direct Link To This Post Topic: GetImage Icons are 16 colors not 256
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.