struct CCL::IBitmapPainter

Overview

#include <ibitmapfilter.h>

struct IBitmapPainter: public CCL::IUnknown
{
    // methods

    virtual void CCL_API setBackColor (Color color) = 0;
    virtual void CCL_API setFilter (IBitmapFilter* filter, tbool share = false) = 0;

    virtual tresult CCL_API drawImage (
        IGraphics& graphics,
        IImage* image,
        RectRef src,
        RectRef dst
    ) = 0;

    virtual tresult CCL_API drawInverted (
        IGraphics& graphics,
        IImage* image,
        RectRef src,
        RectRef dst
    ) = 0;

    virtual tresult CCL_API drawColorized (
        IGraphics& graphics,
        IImage* image,
        RectRef src,
        RectRef dst,
        Color color
    ) = 0;

    virtual tresult CCL_API drawTinted (
        IGraphics& graphics,
        IImage* image,
        RectRef src,
        RectRef dst,
        Color color
    ) = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Methods

virtual void CCL_API setBackColor (Color color) = 0

Set back color for image conversion.

virtual void CCL_API setFilter (IBitmapFilter* filter, tbool share = false) = 0

Assign bitmap filter.

virtual tresult CCL_API drawImage (
    IGraphics& graphics,
    IImage* image,
    RectRef src,
    RectRef dst
) = 0

Draw image with current filter.

virtual tresult CCL_API drawInverted (
    IGraphics& graphics,
    IImage* image,
    RectRef src,
    RectRef dst
) = 0

Draw image inverted.

virtual tresult CCL_API drawColorized (
    IGraphics& graphics,
    IImage* image,
    RectRef src,
    RectRef dst,
    Color color
) = 0

Draw image with source alpha channel and new color.

virtual tresult CCL_API drawTinted (
    IGraphics& graphics,
    IImage* image,
    RectRef src,
    RectRef dst,
    Color color
) = 0

Draw image with with new color.