Kivy With opencv. Resizing Image size

ⅰ亾dé卋堺 提交于 2019-12-02 13:01:14

you can do this: change the class type to BoxLayout. adding Image widget to Boxlayout with size_hint=(1,1). use size binding in init like this:

self.image = Image(size_hint=(1,1))
self.add_widget(self.image)
self.binding(size=self.Updatesize,
             pos=self.Updatesize)

and define a function in your class like this:

def Updatesize(*args):
   self.image.size=self.size
   self.image.pos=self.pos
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!