#How to put single image on a program

17 messages · Page 1 of 1 (latest)

nimble jungle
#

hey, i wasn't using rust for a really long time and i just want a simple help on how to insert image to a program's window, i remember i did this before but i forget, i just want an image to be shown on the program's window

acoustic needle
#

what tooling are you already using to even get the window there?

acoustic needle
nimble jungle
#

winit and image

#

if there is any other tool u prefer me to use please tell me cause i need to program this thing asap

acoustic needle
#

hmm

Winit doesn’t directly provide any methods for drawing on a Window

#

what are you trying to make specifically?

nimble jungle
#

simply to put an image on the window

#

like a 1920x1080 on the 1920x1080 program window

#

for an example

acoustic needle
#

wait

#

?crate show-image

paper driftBOT
#

quickly show images in a window for debugging

Version

0.13.1

Downloads

11 954

acoustic needle
#

@nimble jungle maybe this

#

simple image displaying crate, nothing fancy

nimble jungle
#

Tysm, I’ll try this tommorow