![]() Registered Member ![]()
|
Is there a libkis way to select opaque pixels with rectangle? Should I process pixelData with some other library? Maybe you have a suggestion how to do it? I can ofcourse go through the pixelData pixel by pixel and then (maybe) offset it by the layer position, but it seems cumbersome.
For those interested the intention is to crop the opaque part of the layer and use it as the brush tip with a keystroke. |
![]() KDE Developer ![]()
|
Why not trigger the "deselect" and "selectopaque" actions and then use the resulting selection?
|
![]() Registered Member ![]()
|
Sounds fantastic! Where do I find these actions? |
![]() Registered Member ![]()
|
In Krita, in the Select menu. From Python, you can call actions like this:
There's also selectopaque_add, selectopaque_subtract and selectopaque_intersect. |
![]() Registered Member ![]()
|
Found the actions with this:
|
![]() Registered Member ![]()
|
Thank you! |
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell