⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
PIL
/
__pycache__
/
View File Name :
ImageTransform.cpython-310.pyc
o Z#ûa ã @ sb d dl mZ G dd„ dejƒZG dd„ deƒZG dd„ deƒZG dd „ d eƒZG d d„ deƒZdS ) é )ÚImagec @ s$ e Zd Zdd„ Zdd„ Zdd„ ZdS )Ú Transformc C s || _ d S ©N)Údata)Úselfr © r ú4/usr/lib/python3/dist-packages/PIL/ImageTransform.pyÚ__init__ s zTransform.__init__c C s | j | jfS r )Úmethodr )r r r r Úgetdata s zTransform.getdatac K s" | ¡ \}}|j|||fi |¤ŽS r )r Ú transform)r ÚsizeÚimageÚoptionsr r r r r r s zTransform.transformN)Ú__name__Ú __module__Ú__qualname__r r r r r r r r s r c @ ó e Zd ZdZejZdS )ÚAffineTransformaS Define an affine image transform. This function takes a 6-tuple (a, b, c, d, e, f) which contain the first two rows from an affine transform matrix. For each pixel (x, y) in the output image, the new value is taken from a position (a x + b y + c, d x + e y + f) in the input image, rounded to nearest pixel. This function can be used to scale, translate, rotate, and shear the original image. See :py:meth:`~PIL.Image.Image.transform` :param matrix: A 6-tuple (a, b, c, d, e, f) containing the first two rows from an affine transform matrix. N)r r r Ú__doc__r ÚAFFINEr r r r r r s r c @ r )ÚExtentTransformaï Define a transform to extract a subregion from an image. Maps a rectangle (defined by two corners) from the image to a rectangle of the given size. The resulting image will contain data sampled from between the corners, such that (x0, y0) in the input image will end up at (0,0) in the output image, and (x1, y1) at size. This method can be used to crop, stretch, shrink, or mirror an arbitrary rectangle in the current image. It is slightly slower than crop, but about as fast as a corresponding resize operation. See :py:meth:`~PIL.Image.Image.transform` :param bbox: A 4-tuple (x0, y0, x1, y1) which specifies two points in the input image's coordinate system. See :ref:`coordinate-system`. N)r r r r r ÚEXTENTr r r r r r 5 s r c @ r )Ú QuadTransforma€ Define a quad image transform. Maps a quadrilateral (a region defined by four corners) from the image to a rectangle of the given size. See :py:meth:`~PIL.Image.Image.transform` :param xy: An 8-tuple (x0, y0, x1, y1, x2, y2, x3, y3) which contain the upper left, lower left, lower right, and upper right corner of the source quadrilateral. N)r r r r r ÚQUADr r r r r r K s r c @ r )Ú MeshTransformzÒ Define a mesh image transform. A mesh transform consists of one or more individual quad transforms. See :py:meth:`~PIL.Image.Image.transform` :param data: A list of (bbox, quad) tuples. N)r r r r r ÚMESHr r r r r r \ s r N)Ú r ÚImageTransformHandlerr r r r r r r r r Ú
s