Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

crop_image.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/objects.h>
#include <bicpl/images.h>

Include dependency graph for crop_image.c:

Include dependency graph

Go to the source code of this file.

Functions

private BOOLEAN is_clear_slab (pixels_struct *pixels, Colour bg_colour, int x_min, int y_min, int x_max, int y_max)
public void crop_pixels (pixels_struct *in_pixels, Colour background_colour, int border, pixels_struct *out_pixels)


Function Documentation

public void crop_pixels pixels_struct in_pixels,
Colour  background_colour,
int  border,
pixels_struct out_pixels
 

Definition at line 27 of file crop_image.c.

References initialize_pixels(), is_clear_slab(), PIXEL_RGB_COLOUR, pixels_struct::pixel_type, RGB_PIXEL, pixels_struct::x_position, pixels_struct::x_size, pixels_struct::x_zoom, y, pixels_struct::y_position, pixels_struct::y_size, and pixels_struct::y_zoom.

private BOOLEAN is_clear_slab pixels_struct pixels,
Colour  bg_colour,
int  x_min,
int  y_min,
int  x_max,
int  y_max
 

Definition at line 5 of file crop_image.c.

References FALSE, PIXEL_RGB_COLOUR, TRUE, and y.

Referenced by crop_pixels().


Generated on Wed Jul 28 09:11:02 2004 for BICPL by doxygen 1.3.7