글
PIL로 작업중인데
Image.fromstring() 메소드는 분명 str을 받아다가 image로 만들어 주는 거라고 들었다.
http://www.pythonware.com/library/pil/handbook/image.htm
그래서 이렇게 썼다.
self.wxImg = Image.fromstring("L", (f.getData().shape[1],f.getData().shape[2]), t.tostring()).convert('RGB').tostring()
근데
self.wxBmp2 = self.wxImg.ConvertToBitmap()
이렇게 썼더니 "str은 ConvertToBitmap같은거 모른다"는 에러를 내뱉는다.
뭐여...-_-
PIL문서에서 구라친겨?
삽질좀 끝내자...제발...
Image.fromstring() 메소드는 분명 str을 받아다가 image로 만들어 주는 거라고 들었다.
http://www.pythonware.com/library/pil/handbook/image.htm
그래서 이렇게 썼다.
self.wxImg = Image.fromstring("L", (f.getData().shape[1],f.getData().shape[2]), t.tostring()).convert('RGB').tostring()
근데
self.wxBmp2 = self.wxImg.ConvertToBitmap()
이렇게 썼더니 "str은 ConvertToBitmap같은거 모른다"는 에러를 내뱉는다.
뭐여...-_-
PIL문서에서 구라친겨?
삽질좀 끝내자...제발...
RECENT COMMENT