[GH-ISSUE #160] Add Image support for kandinsky #51

Open
opened 2026-05-06 13:14:49 +02:00 by BreizhHardware · 6 comments

Originally created by @Oreig403 on GitHub (Feb 14, 2022).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/160

I think the titles says all

Originally created by @Oreig403 on GitHub (Feb 14, 2022). Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/160 I think the titles says all
Author
Owner

@AlexandreArduino commented on GitHub (Feb 14, 2022):

what do you mean precisely 🤔 ? You want to be able to show an image on the screen ? You want to be able to modify images ? 🤔

<!-- gh-comment-id:1039441086 --> @AlexandreArduino commented on GitHub (Feb 14, 2022): what do you mean precisely :thinking: ? You want to be able to show an image on the screen ? You want to be able to modify images ? :thinking:
Author
Owner

@Lauryy06 commented on GitHub (Feb 14, 2022):

I think the titles say it all

Actually no...

But if you want, I think it's possible to add to the kandinsky module in Python the possibility to draw an image, but it won't be transparent.

<!-- gh-comment-id:1039503405 --> @Lauryy06 commented on GitHub (Feb 14, 2022): > I think the titles say it all Actually no... But if you want, I think it's possible to add to the kandinsky module in Python the possibility to draw an image, but it won't be transparent.
Author
Owner

@Oreig403 commented on GitHub (Feb 15, 2022):

No I just mean to draw an image like a function draw_image(x,y,width,height) would be nice

<!-- gh-comment-id:1039768110 --> @Oreig403 commented on GitHub (Feb 15, 2022): No I just mean to draw an image like a function draw_image(x,y,width,height) would be nice
Author
Owner

@Oreig403 commented on GitHub (Feb 15, 2022):

and of course src

<!-- gh-comment-id:1039768332 --> @Oreig403 commented on GitHub (Feb 15, 2022): and of course src
Author
Owner

@cben commented on GitHub (Jan 31, 2023):

Since you already have ulab with numpy arrays:

  • It'd be cool to have a way to blit an (w,h,3) array of RGB pixels onto the screen. It can be used to draw fixed "sprites", but given the efficiency of computations on arrays, it'd also become the highest-bandwidth way to draw computed graphics...
    • Hmm, ulab doesn't support 3-dimentional arrays now? Well, take three 2-dimensional arrays.
  • It'd also be nice to have a function to read back a rectangle into ndarray.

I'm not sure how much RAM we have though. I can allocate np.zeros((200, 100), dtype=np.uint8) but (200, 200) already gives me "memory allocation failed"...
Still, any array ability would beat set_pixel loops 🐛

<!-- gh-comment-id:1410136452 --> @cben commented on GitHub (Jan 31, 2023): Since you already have ulab with numpy arrays: - It'd be cool to have a way to blit an (w,h,3) array of RGB pixels onto the screen. It can be used to draw fixed "sprites", but given the efficiency of computations on arrays, it'd also become the highest-bandwidth way to draw computed graphics... - Hmm, ulab doesn't support 3-dimentional arrays now? Well, take three 2-dimensional arrays. - It'd also be nice to have a function to read back a rectangle into ndarray. I'm not sure how much RAM we have though. I can allocate `np.zeros((200, 100), dtype=np.uint8)` but (200, 200) already gives me "memory allocation failed"... Still, any array ability would beat set_pixel loops :bug:
Author
Owner

@Oreig403 commented on GitHub (Feb 1, 2023):

I sure think that would be a good idea if their were enough ram.

<!-- gh-comment-id:1411966882 --> @Oreig403 commented on GitHub (Feb 1, 2023): I sure think that would be a good idea if their were enough ram.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Upsilon#51
No description provided.