-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Image APIs #379
Comments
Hey @ziyaointl. It seems we need to have different PImage classes for We could either declare an abstract class in p5.core and then inherit them in each renderer and do their specific implementation. This doesn't feel necessary to me as we use So I am thinking of just implementing different renderer specific classes in each renderer. In the same way we did |
Also, Instead of this, skia supports numpy and I am thinking of using them only. So users would have to update a |
Let me know your thoughts :) |
I'm inclined to use an abstract
I think this is a great idea! Being able to use numpy arrays directly would be both more performant and IMO makes the indexing more intuitive. |
Yes, that makes sense. I think we should define an abstract class in Thank you :) |
Hey @tushar5526! |
Yes @Hakarishirenai you can start with this |
For both methods, we should first abstract them in PImage at "p5/core/image" and then each render will have its own implementation, right? |
Yes, this is the pattern we are following. This issue focuses features specific to skia but feel free to add it for vispy |
Implement the following Image APIs
Image
Loading & Displaying Pixels
The text was updated successfully, but these errors were encountered: