This forum has been archived. All content is frozen. Please use KDE Discuss instead.

I want to draw line on Node(PixelLayer)

Tags: None
(comma "," separated)
junshiozawa
Registered Member
Posts
10
Karma
0
OS
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.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: I want to draw line

Thu Jul 25, 2019 2:54 pm
No, there are no methods to manipulate pixels in the Python api.
junshiozawa
Registered Member
Posts
10
Karma
0
OS
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.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Like I said, no, you cannot draw a line on a layer from Python.
junshiozawa
Registered Member
Posts
10
Karma
0
OS
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))
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Yes, that's what I've been trying to tell you.
junshiozawa
Registered Member
Posts
10
Karma
0
OS
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))


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell