forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcef_image.pxd
More file actions
23 lines (20 loc) · 1.04 KB
/
cef_image.pxd
File metadata and controls
23 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2016 CEF Python, see the Authors file.
# All rights reserved. Licensed under BSD 3-clause license.
# Project website: https://github.com/cztomczak/cefpython
from cef_ptr cimport CefRefPtr
from libcpp cimport bool as cpp_bool
from cef_values cimport CefBinaryValue
from cef_types cimport cef_color_type_t, cef_alpha_type_t
cdef extern from "include/cef_image.h":
cdef cppclass CefImage:
size_t GetWidth()
size_t GetHeight()
CefRefPtr[CefBinaryValue] GetAsBitmap(float scale_factor,
cef_color_type_t color_type,
cef_alpha_type_t alpha_type,
int& pixel_width,
int& pixel_height)
CefRefPtr[CefBinaryValue] GetAsPNG(float scale_factor,
cpp_bool with_transparency,
int& pixel_width,
int& pixel_height)