screengrab.c File Reference
#include "common.h"
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "icv.h"
#include "./ged_private.h"
Include dependency graph for screengrab.c:

Go to the source code of this file.


int ged_screen_grab (struct ged *gedp, int argc, const char *argv[])

Detailed Description

The screengrab command.

Definition in file screengrab.c.

Function Documentation

int ged_screen_grab ( struct ged gedp,
int  argc,
const char *  argv[] 

< icv image container for saving images

Definition at line 44 of file screengrab.c.

References bu_calloc(), bu_free(), bu_vls_printf(), bu_vls_trunc(), GED_CHECK_ARGC_GT_0, GED_CHECK_DATABASE_OPEN, GED_CHECK_DRAWABLE, GED_CHECK_VIEW, ged::ged_dm_get_display_image, ged::ged_dm_height, ged::ged_dm_width, ged::ged_dmp_is_null, GED_ERROR, GED_HELP, GED_OK, ged::ged_result_str, icv_image::height, ICV_COLOR_SPACE_RGB, icv_create(), ICV_DATA_UCHAR, icv_destroy(), ICV_IMAGE_AUTO, icv_write(), icv_writeline(), usage(), and OSL::Strings::width.

Referenced by ged_preview().

Here is the call graph for this function: