ho_gtk.h man page

src/ho_gtk.h — libhocr C language header.

Synopsis

#include <gdk-pixbuf/gdk-pixbuf.h>
#include <hocr.h>

Defines

#define HO_GTK_H 1

Functions

ho_pixbuf * ho_gtk_pixbuf_from_gdk (const GdkPixbuf *gdk_pix)

ho_pixbuf * ho_gtk_pixbuf_from_gdk_share_data (const GdkPixbuf *gdk_pix)

GdkPixbuf * ho_gtk_pixbuf_to_gdk (const ho_pixbuf *hocr_pix)

ho_pixbuf * ho_gtk_pixbuf_load (const char *filename)

int ho_gtk_pixbuf_save (const ho_pixbuf *pix, const char *filename, const char *ext)

int ho_gtk_font_save (const ho_bitmap *m_text, const ho_bitmap *m_nikud, const ho_bitmap *m_mask, const char *filename, const char *ext)

Detailed Description

libhocr C language header.

libhocr - LIBrary for Hebrew Optical Character Recognition

Define Documentation

#define HO_GTK_H 1

Function Documentation

ho_pixbuf* ho_gtk_pixbuf_from_gdk (const GdkPixbuf * gdk_pix)

new ho_pixbuf from a gdk_pixbuf

Parameters:

gdk_pix the pixbuf to copy

Returns:

newly allocated ho_pixbuf

ho_pixbuf* ho_gtk_pixbuf_from_gdk_share_data (const GdkPixbuf * gdk_pix)

new ho_pixbuf from a gdk_pixbuf

Parameters:

gdk_pix the pixbuf to share data with

Returns:

newly allocated ho_pixbuf, share data with gtk pixbuf

GdkPixbuf* ho_gtk_pixbuf_to_gdk (const ho_pixbuf * hocr_pix)

new gdk_pixbuf from a ho_pixbuf

Parameters:

hocr_pix the pixbuf to copy

Returns:

newly allocated gdk_pixbuf

ho_pixbuf* ho_gtk_pixbuf_load (const char * filename)

read ho_pixbuf from file

Parameters:

filename file name

Returns:

newly allocated ho_pixbuf

int ho_gtk_pixbuf_save (const ho_pixbuf * pix, const char * filename, const char * ext)

writes ho_pixbuf to file

Parameters:

pix ho_pixbuf 8 or 24 bpp
filename save as file name
ext file type extention, e.g jpeg, png ...

Returns:

FALSE

int ho_gtk_font_save (const ho_bitmap * m_text, const ho_bitmap * m_nikud, const ho_bitmap * m_mask, const char * filename, const char * ext)

writes font to file

Parameters:

m_text ho_bitmap of main font
m_nikud ho_bitmap of nikud
m_mask ho_bitmap of line
filename save as file name
ext file type extention, e.g jpeg, png ...

Returns:

FALSE

Author

Generated automatically by Doxygen for libhocr from the source code.

Info

31 Jul 2008 Version 0.10.17 libhocr