|
| 1 | +from .enums import ( |
| 2 | + CompressionMethod, |
| 3 | + PhotometricInterpretation, |
| 4 | + PlanarConfiguration, |
| 5 | + Predictor, |
| 6 | + ResolutionUnit, |
| 7 | + SampleFormat, |
| 8 | +) |
| 9 | +from ._geo import GeoKeyDirectory |
| 10 | + |
| 11 | +class ImageFileDirectory: |
| 12 | + @property |
| 13 | + def new_subfile_type(self) -> int | None: ... |
| 14 | + @property |
| 15 | + def image_width(self) -> int: |
| 16 | + """The number of columns in the image, i.e., the number of pixels per row.""" |
| 17 | + |
| 18 | + @property |
| 19 | + def image_height(self) -> int: |
| 20 | + """The number of rows of pixels in the image.""" |
| 21 | + |
| 22 | + @property |
| 23 | + def bits_per_sample(self) -> list[int]: ... |
| 24 | + @property |
| 25 | + def compression(self) -> CompressionMethod: ... |
| 26 | + @property |
| 27 | + def photometric_interpretation(self) -> PhotometricInterpretation: ... |
| 28 | + @property |
| 29 | + def document_name(self) -> str | None: ... |
| 30 | + @property |
| 31 | + def image_description(self) -> str | None: ... |
| 32 | + @property |
| 33 | + def strip_offsets(self) -> list[int] | None: ... |
| 34 | + @property |
| 35 | + def orientation(self) -> int | None: ... |
| 36 | + @property |
| 37 | + def samples_per_pixel(self) -> int: |
| 38 | + """ |
| 39 | + The number of components per pixel. |
| 40 | +
|
| 41 | + SamplesPerPixel is usually 1 for bilevel, grayscale, and palette-color images. |
| 42 | + SamplesPerPixel is usually 3 for RGB images. If this value is higher, |
| 43 | + ExtraSamples should give an indication of the meaning of the additional |
| 44 | + channels. |
| 45 | + """ |
| 46 | + |
| 47 | + @property |
| 48 | + def rows_per_strip(self) -> int | None: ... |
| 49 | + @property |
| 50 | + def strip_byte_counts(self) -> int | None: ... |
| 51 | + @property |
| 52 | + def min_sample_value(self) -> int | None: ... |
| 53 | + @property |
| 54 | + def max_sample_value(self) -> int | None: ... |
| 55 | + @property |
| 56 | + def x_resolution(self) -> float | None: |
| 57 | + """The number of pixels per ResolutionUnit in the ImageWidth direction.""" |
| 58 | + |
| 59 | + @property |
| 60 | + def y_resolution(self) -> float | None: |
| 61 | + """The number of pixels per ResolutionUnit in the ImageLength direction.""" |
| 62 | + |
| 63 | + @property |
| 64 | + def planar_configuration(self) -> PlanarConfiguration: ... |
| 65 | + @property |
| 66 | + def resolution_unit(self) -> ResolutionUnit | None: ... |
| 67 | + @property |
| 68 | + def software(self) -> str | None: ... |
| 69 | + @property |
| 70 | + def date_time(self) -> str | None: ... |
| 71 | + @property |
| 72 | + def artist(self) -> str | None: ... |
| 73 | + @property |
| 74 | + def host_computer(self) -> str | None: ... |
| 75 | + @property |
| 76 | + def predictor(self) -> Predictor | None: ... |
| 77 | + @property |
| 78 | + def tile_width(self) -> int: ... |
| 79 | + @property |
| 80 | + def tile_height(self) -> int: ... |
| 81 | + @property |
| 82 | + def tile_offsets(self) -> list[int]: ... |
| 83 | + @property |
| 84 | + def tile_byte_counts(self) -> list[int]: ... |
| 85 | + @property |
| 86 | + def extra_samples(self) -> bytes | None: ... |
| 87 | + @property |
| 88 | + def sample_format(self) -> list[SampleFormat]: ... |
| 89 | + @property |
| 90 | + def jpeg_tables(self) -> bytes | None: ... |
| 91 | + @property |
| 92 | + def copyright(self) -> str | None: ... |
| 93 | + @property |
| 94 | + def geo_key_directory(self) -> GeoKeyDirectory | None: ... |
| 95 | + @property |
| 96 | + def model_pixel_scale(self) -> list[float] | None: ... |
| 97 | + @property |
| 98 | + def model_tiepoint(self) -> list[float] | None: ... |
0 commit comments