Changeset 2810 for libpipi/trunk


Ignore:
Timestamp:
Aug 30, 2008, 1:29:54 PM (12 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Preliminary support for a string to color routine (rgb(), argb() frgb(), fargb()) as well as named colors
Location:
libpipi/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/examples/Makefile.am

    r2809 r2810  
    33AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/pipi
    44
    5 bin_PROGRAMS = edd img2rubik sharpen floodfill line bezier histogram
     5bin_PROGRAMS = edd img2rubik sharpen floodfill line bezier histogram colorstring
    66
    77edd_SOURCES = edd.c
     
    2525histogram_SOURCES = histogram.c
    2626histogram_LDADD = ../pipi/libpipi.la
     27
     28colorstring_SOURCES = colorstring.c
     29colorstring_LDADD = ../pipi/libpipi.la
  • libpipi/trunk/pipi/Makefile.am

    r2809 r2810  
    2222        codec.c \
    2323        stock.c \
     24        colorstring.c \
    2425        resize.c \
    2526        dither.c \
  • libpipi/trunk/pipi/paint/line.c

    r2806 r2810  
    7373    s.x2 = x2;
    7474    s.y2 = y2;
     75
    7576
    7677    /* No Transparency routine for u32 yet, fallback to float version */
  • libpipi/trunk/pipi/pipi.h

    r2809 r2810  
    22 *  libpipi       Proper image processing implementation library
    33 *  Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org>
     4 *                2008 Jean-Yves Lamoureux <jylam@lnxscene.org
    45 *                All Rights Reserved
    56 *
     
    2223#include <stdio.h>
    2324#include <string.h>
     25#include <stdint.h>
    2426
    2527#ifdef __cplusplus
     
    7981    union
    8082    {
     83        struct pixel_float pixel_float;
    8184        struct pixel_u32   pixel_u32;
    82         struct pixel_float pixel_float;
    8385    };
    8486}
     
    102104/* pipi_histogram_t: the histogram type */
    103105typedef struct pipi_histogram pipi_histogram_t;
     106
     107extern pipi_pixel_t *pipi_get_color_from_string(const char* s);
     108
    104109
    105110extern pipi_context_t *pipi_create_context(void);
Note: See TracChangeset for help on using the changeset viewer.