dplug.graphics.image

In-memory images.

Members

Functions

copyPixels
void copyPixels(auto ref SRC src, COLOR[] dst)

Copy a view's pixels (top-to-bottom) to a COLOR buffer.

copyScanline
void copyScanline(auto ref SRC src, int y, COLOR[] dst)

Copy the indicated row of src to a COLOR buffer.

toRef
ImageRef!(ViewColor!SRC) toRef(auto ref SRC src)

Convert a direct view to an ImageRef. Assumes that the rows are evenly spaced.

Structs

ImageRef
struct ImageRef(COLOR)

Represents a reference to COLOR data already existing elsewhere in memory. Assumes that pixels are stored row-by-row, with a known distance between each row.

Templates

downscale
template downscale(int HRX, int HRY = HRX)

Performs linear downscale by a constant factor

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.