I'm using Amiga OS3.5 with the Iconic Plugin. I have installed util/dtype/icondt.lha from Aminet. I found that, for example, the shell icon (SYS:System/Shell.info) displays poorly in Hollywood with this datatype installed. It does display perfectly in Multiview, however, with the datatype installed. I'm not sure the difference. Anyway, I thought no problem, I'll use the following code which I thought would load the icon using the Iconic Plugin rather than the datatype:
Code: Select all
@DISPLAY {width=100, height=100}
@REQUIRE "iconic"
LoadIcon(1, "SYS:System/Shell.info", {loader="iconic"})
ConvertToBrush(#ICON, 1, 1)
DisplayBrush(1, #CENTER, #CENTER)
Repeat
WaitEvent
Forever
Since we're on this topic, there are several #ICNFMT_ constants that we can use to save icons. Is there a way to use GetAttribute() on the icon to see what type it was that was loaded by the Iconic Plugin? There doesn't seem to be anything about it in the documentation for GetAttribute().
Finally, there are several icons which display as blank (totally transparent though width and height are correct when queried) or as a small black box when using the Iconic Plugin. These icons display fine on the Workbench. Can the Iconic Plugin either fail in these cases or tell me via above that it is of #ICNFMT_UNKNOWN so that I can react accordingly in my code? Is there another way programmatically that I can tell there is a problem? Querying the width of the icon and the color of pixel (0,0) tells me that it is the black box case. I don't know how to tell in the transparent case though.
Thanks for the help!!
NathanH