Custom Image for a Imageview?
-
Can anybody tell me how to put a custom picture in an image view? Here is what I have:
#in a class already under self self.mm = ui.load_view('MainMenu') img = ui.Image.named('companylogo.PNG') self.mm['imageview1'].image = img self.mm.present('fullscreen', hide_title_bar=True) #all of the presenting goes to the plan but the image doesn't appear and no errors pop up
-
@RocketBlaster05:
instead of,
img = ui.Image.named('companylogo.PNG')
try :
img = ui.Image('companylogo.PNG')I think that would work.
-
@RocketBlaster05 sure that the image is in the same folder? Try with
img = ui.Image.named('iob:map_32')
-
@satsuki.kojima Itโs now telling me that it canโt load the image... is the image too large or am I missing something? @cvp
-
Ah ok fixed the problem. File was saved as .png but it needed to be .PNG
-
@RocketBlaster05 ๐ (thus the image was not in your folder ๐)