ID:2030286
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
I've been playing around with random icon generation using crop and I was surprised there's no way to see if an icon is blank or not.

Could there be an IsBlank() for icons?

Did find this after all my googling: 14 years too late.
icon_states() will return an empty list if the icon is blank.
icon_states() still returns the blank icon as a state. To clarify if I crop a section of an icon that has no pixels should icon_states have ignored it?
Ah. No, it would not.
Before I take it to dev help, short from checking each pixel (which I think would be a horrible workaround), I don't see a way to check. I saw a topic claiming to successfully use fcopy_rsc() to compare it to a blank icon but that doesn't seem to work either.