Sha256: 3a6f4808228e8f587259fb5ec7ba8f6afe6a16f90fca265922a88cf0a62d084a

Contents?: true

Size: 660 Bytes

Versions: 2

Compression:

Stored size: 660 Bytes

Contents

#ifndef OILY_PNG_RESAMPLING_H
#define OILY_PNG_RESAMPLING_H

/*
 * Generates the interpolation steps (nearest neighbour) through two values.
 */
void oily_png_generate_steps_residues(long width, long new_width, long *steps, long *residues);

/*
 * Generates the interpolation steps through two values.
 * 
 * Returns a Ruby Array
 */
VALUE oily_png_canvas_steps_residues(VALUE self, VALUE width, VALUE new_width);
VALUE oily_png_canvas_steps(VALUE self, VALUE width, VALUE new_width);


/*
 * Performs nearest neighbor interpolation on the Canvas
 */
VALUE oily_png_canvas_resample_nearest_neighbor_bang(VALUE self, VALUE new_width, VALUE new_height);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oily_png-1.0.3 ext/oily_png/resampling.h
oily_png-1.0.2 ext/oily_png/resampling.h