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
21 lines (18 loc) · 957 Bytes
/
cef_image.pxd
File metadata and controls
21 lines (18 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) 2016 The CEF Python authors. All rights reserved.
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)