PyMuPDF 1.24.2 Documentationspecifics for your wxPython release: if pix.alpha: bitmap = wx.Bitmap.FromBufferRGBA(pix.width, pix.height, pix.samples) else: bitmap = wx.Bitmap.FromBuffer(pix.width, pix.height, pix.samples) Tkinter interfacing with Pillow is almost trivial. Input Formats Output Formats Description BMP . Windows Bitmap JPEG JPEG Joint Photographic Experts Group JXR . JPEG Extended Range JPX/JP2 . JPEG 2000 GIF PNG Portable Network Graphics PNM PNM Portable Anymap PGM PGM Portable Graymap PBM PBM Portable Bitmap PPM PPM Portable Pixmap PAM PAM Portable Arbitrary Map . PSD Adobe Photoshop Document . PS Adobe0 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentationall the pixels as a Python bytes object. Here are two examples, find more here. wxPython: >>> bitmap = wx.BitmapFromBufferRGBA(pix.width, pix Tkinter: >>> # the following requires: "from PIL import0 码力 | 387 页 | 2.70 MB | 1 年前3
共 2 条
- 1













