Graphics::ColorObject

Description

Graphics::ColorObject can convert between color spaces. SYNOPSIS use Graphics::ColorObject; # rgb to hsv $color = Graphics::ColorObject->new_RGB([$r, $g, $b]); ($h, $s, $v) = @{ $color->as_HSV() }; # one rgb space to another (NTSC to PAL) $color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>NTSC); ($r, $g, $b) = @{ $color->as_RGB(space=>PAL) }; ABSTRACT Use this module to convert between all the common color spaces. As a pure Perl module, it is not very fast, and so it you want to convert entire images quickly, this is probably not what you want. The emphasis is on completeness and accurate conversion. Supported color spaces are: RGB (including sRGB, Apple, Adobe, CIE Rec 601, CIE Rec 709, CIE ITU, and about a dozen other RGB spaces), CMY, CMYK, HSL, HSV, XYZ, xyY, Lab, LCHab, Luv, LCHuv, YPbPr, YCbCr, YUV, YIQ, PhotoYCC. Conversion between different RGB working spaces, and between different white-points, is fully supported. For any supported color space XXX, there is one constructor new_XXX that creates a color using data in that color space, and one method as_XXX that returns the current color as expressed in that color space. For example, for RGB there is new_RGB and as_RGB. The color data is always passed as an array reference to a three-element array (four-element in the case of CMYK). Thus, to convert from RGB to HSL, you can use: $color = Graphics::ColorObject->new_RGB([$r, $g, $b]); ($h, $s, $l) = @{ $color->as_HSL() }; The constructor can always take a hash of optional arguments in addition to the color value, namely the working RGB space and the white point. For example: $color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>Adobe, white_point=>D65); For a list of all supported color spaces, call Graphics::ColorObject->list_colorspaces(). For a list of all RGB working spaces and of all white points that this module supports, call Graphics::ColorObject->list_rgb_spaces() and Graphics::ColorObject->list_white_points(). If not specified, the working RGB space will be sRGB. Many non-RGB conversions also rely on an implicit RGB space, and passing an RGB space as an option (either to the constructor or later) will have an effect on the values.. Get h264bitstream at SourceForge.net. Fast, secure and free downloads from the largest Open Source applications and software directory. libh264bitstream provides a complete set of functions to read and write video streams conforming to the ITU H.264 (MPEG-4 part 10, AVC or Advanced Video Codec, H264) video standard.

Rgb - Colorobject - Xxx - Hsl - Cie - Color Spaces - Color - Space - Spaces - Convert - New - Graphicscolorobject - Libraries

Published By:Alex Izvorski

License Type:Freeware

Date Added:22 October, 2010

Version:0.5.0

Price:Free

Downloads:86

Size:22.5 KB

Platform: Linux

What people say
- required fields
     
Related Downloads

Color::Scheme is a module used to generate pleasant color schemes. This module is a Perl implementation of Color Schemes 2, a color scheme generator. Start by visitng the Color Schemes 2 web site and playing with the colors.

DateAug 12, 2010

AuthorIan Langworth

Size11.3 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

JIU is a library which offers functionality to load, analyze, process and save pixel images. Various file formats are supported, demo applications for the command line and the AWT GUI toolkit are provided too..

DateSep 26, 2010

AuthorMarco Schmidt

Size1.2 MB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Multimedia

SGI plug-in provides SGI image file load & save modules for The GIMP. The plug-in supports GRAY, GRAYA, RGB, and RGBA color modes.

DateSep 13, 2010

AuthorMichael Sweet

Size10.2 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Multimedia

AHote is a C++ library for generating color schemes and also includes a few other classes for converting between RGB (Red, Green, Blue), YUV (Luminance and Chrominance), HSB (Hue, Saturation, Brightness) and HSL (Hue, Saturation, Lightness).

DateAug 4, 2010

AuthorRick Vinyard

Size245.8 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming

Color::Object is a OO-Color Module. A module for manipulation Colors within RGB, HSV and HSL color-spaces for usage within PDF-Documents especially with the Text::PDF::API modules.

DateSep 13, 2010

AuthorAlfred Reibenschuh

Size3.1 KB

LicenseFreeware

PriceFree

PlatformLinux

CategoryLinux Programming