mapnik::raster : allow passing image_data into ctor
This commit is contained in:
parent
2577a6c9b8
commit
79bbe13c0d
1 changed files with 7 additions and 0 deletions
|
@ -50,6 +50,13 @@ public:
|
|||
filter_factor_(filter_factor),
|
||||
premultiplied_alpha_(premultiplied_alpha) {}
|
||||
|
||||
raster(box2d<double> const& ext, image_data_32 && data,
|
||||
double filter_factor, bool premultiplied_alpha = false)
|
||||
: ext_(ext),
|
||||
data_(std::move(data)),
|
||||
filter_factor_(filter_factor),
|
||||
premultiplied_alpha_(premultiplied_alpha) {}
|
||||
|
||||
void set_nodata(double nodata)
|
||||
{
|
||||
nodata_ = nodata;
|
||||
|
|
Loading…
Add table
Reference in a new issue