wxPythonã§ç¨æããã¦ããImageãBitmapãPython Imaging Libraryã§ä½¿ãã«ã¯ã©ãããã°ããã®ãï¼ã¨ãã話ã wxPythonã¯ãã¾ãã¾ãªãã©ã¼ãããã®ç»åãèªã¿è¾¼ããã®ã§ä¾¿å©ã§ããwx.Imageã¨PILãç¸äºå¤æã§ãããªãã èªã¿è¾¼ãã wxImageãPython Imaging Libraryã®Imageã«å¤æãã¦ãç»åå¦çã«ä½¿ããã¨ãã§ãã¾ãã ç¸äºå¤æããããã®é¢æ°ã®ä¾ã¨ãå®éã«ä½æãããµã³ãã«ã³ã¼ããç´¹ä»ãã¾ãã wx.ImageããPILã¸ã®å¤æ newã¡ã½ããã§pilã®ç»åãå ¥åç»åã¨åãµã¤ãºã§ä½ãã¾ããwxImageã®GetDataã¡ã½ããã§åãåºããRawãã¼ã¿ããpilã®fromstringã¡ã½ããã§åãè¾¼ãã°OKã§ãã #convert wx.Image to PIL Image def wxImageToPil(wximage):
{{#tags}}- {{label}}
{{/tags}}