| 1 |
from collections.abc import Sequence |
| 2 |
|
| 3 |
from qt.core import QColor, QImage |
| 4 |
|
| 5 |
def load_from_data_without_gil(image: QImage, data: bytes) -> bool: |
| 6 |
"Load image data (the raw bytes of an encoded image file) into image, without holding the GIL" |
| 7 |
pass |
| 8 |
|
| 9 |
def remove_borders(image: QImage, fuzz: float) -> QImage: |
| 10 |
"Remove border pixels from image that are within fuzz of the border color" |
| 11 |
pass |
| 12 |
|
| 13 |
def grayscale(image: QImage) -> QImage: |
| 14 |
"Convert image to grayscale" |
| 15 |
pass |
| 16 |
|
| 17 |
def gaussian_sharpen(img: QImage, radius: float, sigma: float, high_quality: bool = True) -> QImage: |
| 18 |
"Sharpen img using a Gaussian convolution kernel of the specified radius and sigma" |
| 19 |
pass |
| 20 |
|
| 21 |
def gaussian_blur(img: QImage, radius: float, sigma: float) -> QImage: |
| 22 |
"Blur img using a Gaussian convolution kernel of the specified radius and sigma" |
| 23 |
pass |
| 24 |
|
| 25 |
def despeckle(image: QImage) -> QImage: |
| 26 |
"Reduce noise in image using a despeckle filter" |
| 27 |
pass |
| 28 |
|
| 29 |
def overlay(image: QImage, canvas: QImage, left: int, top: int) -> None: |
| 30 |
"Overlay image onto canvas at the specified left, top position" |
| 31 |
pass |
| 32 |
|
| 33 |
def normalize(image: QImage) -> QImage: |
| 34 |
"Normalize the contrast of image" |
| 35 |
pass |
| 36 |
|
| 37 |
def oil_paint(image: QImage, radius: float = -1, high_quality: bool = True) -> QImage: |
| 38 |
"Apply an oil painting effect to image using the specified radius" |
| 39 |
pass |
| 40 |
|
| 41 |
def dominant_color(image: QImage) -> QColor: |
| 42 |
"Return the dominant color in image" |
| 43 |
pass |
| 44 |
|
| 45 |
def quantize(image: QImage, maximum_colors: int, dither: bool, palette: Sequence[int]) -> QImage: |
| 46 |
"Quantize image to at most maximum_colors colors, optionally dithering, using the specified palette of QRgb values" |
| 47 |
pass |
| 48 |
|
| 49 |
def has_transparent_pixels(image: QImage) -> bool: |
| 50 |
"Return True if image has any transparent pixels" |
| 51 |
pass |
| 52 |
|
| 53 |
def set_opacity(image: QImage, alpha: float) -> QImage: |
| 54 |
"Return a copy of image with its opacity set to alpha (0.0 - 1.0)" |
| 55 |
pass |
| 56 |
|
| 57 |
def texture_image(image: QImage, texturei: QImage) -> QImage: |
| 58 |
"Tile texturei to cover image and return the result" |
| 59 |
pass |
| 60 |
|
| 61 |
def ordered_dither(image: QImage) -> QImage: |
| 62 |
"Apply ordered dithering to image" |
| 63 |
pass |