I have issue with adding an image to a widget .
resource PNGA(kPicIcoPNGIconRsrcID) "Image.png"
resource PNGR(kPicIcoPNGIconRollRsrcID) "ImageR.png"
type PicIcoRollOverIconButtonWidget (kViewRsrcType) : RollOverIconButtonWidget(ClassID = kPicIcoRollOverIconButtonObserverBoss)
kPicIcoPluginID, // WidgetId, RsrcId
kBindNone, // Frame binding
Frame(35,5,53,23) // Frame
kTrue, kTrue, // Visible, Enabled
this is the code which i use . the issue is if i use default sdk images (eg:SDKinfobutton.png ) it works fine .Other than sdk images i am not able to add it to the widget .It just shows blank.
Help or Advice Please ......
Check whether your image files are true PNG. I've had some "artists" just modify the extension.
Examine the plugin resource folders whether the file ends up in the correct place.
Make a binary comparison, e.g. using diff
When PNGA and PNGR are meant for the same button, you should use the same resoure ID, different types are enough.
Compile the original pictureicon example project with only the PNG files substituted with yours.
If the plugin will show your custom icons, rebuild your project in steps from the example until things break.
On the other hand, I'd fear your PNG files themselves have a problem.
How did you create and verify them?
What PNG options did you use? I think there are truecolor vs. color lookup ...
I still use Adobe ImageStyler dating back to the late 90s, but I'd try Adobe FireWorks otherwise.