![]() Registered Member ![]()
|
Not PyQt API.
Not Python API. This question is Krita API(Python). I want to draw line on Node(PixelLayer) by Krita Extension(Python). However I can found out Node::setPixelData() method only on Krita API(Python). https://api.kde.org/extragear-api/graph ... 4719094d47 Is there a draw line method on Krita API(python)? Do I need to create my draw line method by Python?(Internally using Node::setPixelData() method on Krita API(Python))
Last edited by junshiozawa on Fri Jul 26, 2019 4:16 am, edited 6 times in total.
|
![]() KDE Developer ![]()
|
No, there are no methods to manipulate pixels in the Python api.
|
![]() Registered Member ![]()
|
I found out Node::setPixelData() on Krita API(Python)
Not PyQt API. Not Python API. This question is Krita API(Python). I want to draw line on Node(PixelLayer) by Krita Extension(Python). However I can found out Node::setPixelData() method only on Krita API(Python). Is there a draw line method on Krita API(python)? Do I need to create my draw line method by Python?(Internally using Node::setPixelData() method on Krita API(Python))
Last edited by junshiozawa on Fri Jul 26, 2019 4:15 am, edited 2 times in total.
|
![]() KDE Developer ![]()
|
Like I said, no, you cannot draw a line on a layer from Python.
|
![]() Registered Member ![]()
|
Like I said, it can manipulate pixels in the Krita API(python).
Node::setPixelData() method on Krita API(Python). https://api.kde.org/extragear-api/graph ... 4719094d47 Do I need to create my draw line method by Python?(Internally using Node::setPixelData() method on Krita API(Python)) |
![]() KDE Developer ![]()
|
Yes, that's what I've been trying to tell you.
|
![]() Registered Member ![]()
|
Thank you,boudewijn.I appreciate you.
I try to create my draw line method by Python.(Internally using Node::setPixelData() method on Krita API(Python)) |
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell