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.
ID:2030286
![]() Feb 4 2016, 10:40 pm
|
|||||||
| |||||||
![]() Feb 5 2016, 12:35 am
|
|
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?
|