-
Notifications
You must be signed in to change notification settings - Fork 0
ZOOM, RGB TO YIQ
Yoann Berenguer edited this page May 21, 2023
·
1 revision
zoom(surface_, unsigned int delta_x, unsigned int delta_y, float zx=0.9999)
"""
ZOOM WITHIN AN IMAGE
Zoom-in or zoom-out (factor zx) toward a given centre point (delta_x, delta_y)
:param surface_ : pygame.Surface
:param delta_x : int; Zoom centre x coordinate must be in range [0 ... w]
:param delta_y : int; Zoom centre y coordinate must be in range [0 ... h]
:param zx : float; Zoom factor (0.9999 no zoom) must be in range [0.0 ... 0.9999]
:return : Returns an image with a zoom effect
"""
e.g:
IMAGE = zoom(IMAGE, 400, 300, zx=0.5)
RGB_TO_YIQ_Q0_inplace(object surface_)
"""
CONVERT IMAGE INTO YIQ MODEL (REPRESENT IN-PHASE VALUE)
Final YIQ model without the quadrature value Q = 0
In YIQ the Y component represents the luma information,
I and Q represent the chrominance information.
I stands for in-phase, while Q stands for quadrature, referring to the components
used in quadrature amplitude modulation.
New in version 1.0.9
:param surface_: pygame.Surface;
:return: void
"""
RGB_TO_YIQ_I0_inplace(object surface_)
"""
CONVERT IMAGE INTO YIQ MODEL
Final YIQ model without the in phase value I = 0
New in version 1.0.9
:param surface_: pygame.Surface;
:return: void
"""
RGB_TO_YIQ_Y0_inplace(object surface_)
"""
CONVERT IMAGE INTO YIQ MODEL
Final YIQ model without the luma value Y = 0
New in version 1.0.9
:param surface_: pygame.Surface;
:return: void
"""
e.g:
RGB_TO_YIQ_Q0_inplace(IMAGE)
RGB_TO_YIQ_Y0_inplace(IMAGE)
RGB_TO_YIQ_I0_inplace(IMAGE)