Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e94a0 commit 3f84b61Copy full SHA for 3f84b61
src/_backend_agg.cpp
@@ -5,26 +5,6 @@
5
#include "_backend_agg.h"
6
#include "mplutils.h"
7
8
-void BufferRegion::to_string_argb(uint8_t *buf)
9
-{
10
- unsigned char *pix;
11
- unsigned char tmp;
12
- size_t i, j;
13
-
14
- memcpy(buf, data, (size_t) height * stride);
15
16
- for (i = 0; i < (size_t)height; ++i) {
17
- pix = buf + i * stride;
18
- for (j = 0; j < (size_t)width; ++j) {
19
- // Convert rgba to argb
20
- tmp = pix[2];
21
- pix[2] = pix[0];
22
- pix[0] = tmp;
23
- pix += 4;
24
- }
25
26
-}
27
28
RendererAgg::RendererAgg(unsigned int width, unsigned int height, double dpi)
29
: width(width),
30
height(height),
0 commit comments