Logo Search packages:      
Sourcecode: zbar version File versions  Download package

int zbar_window_draw ( zbar_window_t window,
zbar_image_t image 
)

draw a new image into the output window.

Definition at line 267 of file window.c.

References zbar_window_draw().

Referenced by zbar::Window::clear(), zbar::Window::draw(), zbar_processor_set_active(), zbar_window_attach(), and zbar_window_draw().

{
    if(window_lock(w))
        return(-1);
    if(!w->draw_image)
        img = NULL;
    if(img) {
        _zbar_image_refcnt(img, 1);
        if(img->width != w->src_width ||
           img->height != w->src_height)
            w->dst_width = 0;
    }
    if(w->image)
        _zbar_image_refcnt(w->image, -1);
    w->image = img;
    return(window_unlock(w));
}


Generated by  Doxygen 1.6.0   Back to index