peewee Documentation
Release 3.5.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 347 页 | 380.80 KB | 1 年前3
peewee Documentation Release 3.4.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 349 页 | 382.34 KB | 1 年前3
peewee Documentation Release 3.1.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 332 页 | 370.77 KB | 1 年前3
peewee Documentation
Release 3.5.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 282 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.3.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set previous page) bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 280 页 | 1.02 MB | 1 年前3
peewee Documentation
Release 3.4.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() (continues on next page) 68 Chapter 1. Contents: peewee Documentation bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 284 页 | 1.03 MB | 1 年前3
peewee Documentation Release 3.6.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 377 页 | 399.12 KB | 1 年前3
peewee Documentation
Release 3.6.0toggles as an integer bitmask. The latter is suitable for storing a bitmap for a large data-set, e.g. expressing membership or bitmap-type data. As an example of using BitField, let’s say we have a Post automatically managed buffer of bytes, stored in a BlobField. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11)0 码力 | 302 页 | 1.02 MB | 1 年前3
peewee Documentation Release 3.0.0support the number of bits of data being stored. Example usage: class Bitmap(Model): data = BigBitField() bitmap = Bitmap() # Sets the ith bit, e.g. the 1st bit, the 11th bit, the 63rd, etc. bits_to_set bits_to_set: bitmap.data.set_bit(bit_idx) # We can test whether a bit is set using "is_set": assert bitmap.data.is_set(11) assert not bitmap.data.is_set(12) # We can clear a bit: bitmap.data.clear_bit(11) clear_bit(11) assert not bitmap.data.is_set(11) # We can also "toggle" a bit. Recall that the 63rd bit was set earlier. assert bitmap.data.toggle_bit(63) is False assert bitmap.data.toggle_bit(63) is True assert0 码力 | 319 页 | 361.50 KB | 1 年前3
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
共 62 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













