libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Image data conversion
+ Collaboration diagram for Image data conversion:

Functions

Glib::RefPtr< Gdk::Pixbuf > GdkCRN::PixbufFromCRNImage (const crn::ImageBase &img)
 Creates a Gdk::Pixbuf from a crn::Image. More...
 
Glib::RefPtr< Gdk::Pixbuf > GdkCRN::PixbufFromFile (const crn::Path &p)
 Creates a Gdk::Pixbuf from a file. More...
 
crn::ImageRGB GdkCRN::CRNImageFromPixbuf (const Glib::RefPtr< Gdk::Pixbuf > &pb)
 Creates a crn::Image from a Gdk::Pixbuf. More...
 
Gdk::Color GdkCRN::ColorFromCRNPixel (const crn::pixel::RGB8 &p)
 Creates a Gdk::Color from a crn::Pixel. More...
 
crn::pixel::RGB8 GdkCRN::CRNPixelRGBFromGdkColor (const Gdk::Color &color)
 Creates a crn::PixelRGB from a Gdk::Color. More...
 

Detailed Description

Function Documentation

Gdk::Color GdkCRN::ColorFromCRNPixel ( const crn::pixel::RGB8 p)

Creates a Gdk::Color from a crn::Pixel.

Creates a Gdk::Color from a crn::pixel::RGB8

Parameters
[in]pthe pixel to convert
Returns
a Gdk::Color

Definition at line 205 of file GdkCRNPixbuf.cpp.

ImageRGB GdkCRN::CRNImageFromPixbuf ( const Glib::RefPtr< Gdk::Pixbuf > &  pb)

Creates a crn::Image from a Gdk::Pixbuf.

Creates a crn::Image from a Gdk::Pixbuf

Exceptions
crn::ExceptionInvalidArgumentnull image
Parameters
[in]pbthe pixbuf to convert
Returns
a new SImageRGB or nullptr if failed

Definition at line 147 of file GdkCRNPixbuf.cpp.

crn::pixel::RGB8 GdkCRN::CRNPixelRGBFromGdkColor ( const Gdk::Color &  color)

Creates a crn::PixelRGB from a Gdk::Color.

Creates a crn::pixel::RGB8 from a Gdk::Color

Parameters
[in]colorthe color to convert
Returns
a crn::pixel::RGB8

Definition at line 218 of file GdkCRNPixbuf.cpp.

Glib::RefPtr< Gdk::Pixbuf > GdkCRN::PixbufFromCRNImage ( const crn::ImageBase img)

Creates a Gdk::Pixbuf from a crn::Image.

Creates a Gdk::Pixbuf from a crn::Image

Exceptions
crn::ExceptionInvalidArgumentunsupported pixel format
Parameters
[in]imgthe image to convert
Returns
a new Gdk::Pixbuf

Definition at line 100 of file GdkCRNPixbuf.cpp.

Glib::RefPtr< Gdk::Pixbuf > GdkCRN::PixbufFromFile ( const crn::Path p)

Creates a Gdk::Pixbuf from a file.

Creates a Gdk::Pixbuf from a file

Parameters
[in]pthe path to the image
Returns
a new Gdk::Pixbuf

Definition at line 125 of file GdkCRNPixbuf.cpp.