Skip to content

tag

TargaSaveOptions

Bases: Photoshop

Options for saving a document in TGA (Targa) format.

Source code in photoshop/api/save_options/tag.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
class TargaSaveOptions(Photoshop):
    """Options for saving a document in TGA (Targa) format."""

    object_name = "TargaSaveOptions"

    def __int__(self):
        super().__init__()

    @property
    def alphaChannels(self):
        """If true, the alpha channels are saved."""
        return self.app.alphaChannels

    @alphaChannels.setter
    def alphaChannels(self, value):
        self.app.alphaChannels = value

    @property
    def resolution(self):
        return self.app.resolution

    @resolution.setter
    def resolution(self, value: TargaBitsPerPixels = TargaBitsPerPixels.Targa24Bits):
        self.app.resolution = value

    @property
    def rleCompression(self):
        return self.app.rleCompression

    @rleCompression.setter
    def rleCompression(self, value):
        self.app.rleCompression = value

alphaChannels property writable

If true, the alpha channels are saved.


Last update: 2024-03-05
Created: 2024-03-05