本文整理汇总了C++中Painter::ProjectImages方法的典型用法代码示例。如果您正苦于以下问题:C++ Painter::ProjectImages方法的具体用法?C++ Painter::ProjectImages怎么用?C++ Painter::ProjectImages使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Painter
的用法示例。
在下文中一共展示了Painter::ProjectImages方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PaintBackdrop
/* Paint backdrop
---------------------------------------------------------------------------------*/
void TableSkin::PaintBackdrop( const Painter& painter, const Pos &p )
{
if ( Exists(SOURCE) )
{
_point_cache.clear();
_rect_cache.clear();
ThinkFrame( _point_cache, _rect_cache, p);
ThinkBackdrop( _point_cache, _rect_cache, p );
painter.ProjectImages( GetImage(SOURCE), _point_cache, _rect_cache );
}
}
示例2: Paint
void AlphaFont::Paint( const Painter &painter, const Text &text, const Pos &pos )
{
PreformatedText preformated = text;
PreformatedText::ConstIterator subtext_i = preformated.ConstBegin();
Pos carret = pos;
MaskedColor &mask = (MaskedColor &)( (*_faces).GetImage( ImageDicer::SOURCE ) );
for (; !!subtext_i; ++subtext_i )
{
const UniCode *p = &*preformated.begin() + (*subtext_i).start;
const UniCode *q = &*preformated.begin() + (*subtext_i).end;
ApplyMarkup( *subtext_i );
if ( p==q ) { continue; }
PointList points;
RectList rects;
ThinkQuick( p, q, points, rects, carret );
if ( _back_opacity > 0.0 )
{
mask.InvertMask(true);
mask.SetAlphaFactors( 0, 255.0*_back_opacity );
mask.SetColor( _back_color );
painter.ProjectImages( mask, points, rects );
}
if ( _opacity > 0.0 )
{
mask.InvertMask(false);
mask.SetAlphaFactors( 0, 255.0*_opacity );
mask.SetColor( _color );
painter.ProjectImages( mask, points, rects );
}
}
}
示例3: ThinkFrame
/* Paint frame & grid
---------------------------------------------------------------------------------*/
void TableSkin::PaintGrid ( const Painter& painter, const Pos &p )
{
if ( Exists(SOURCE) )
{
if ( _point_cache.empty() || _rect_cache.empty() )
{
_point_cache.clear();
_rect_cache.clear();
ThinkFrame( _point_cache, _rect_cache, p);
}
PointList points;
RectList rects;
ThinkGrid( points, rects, p);
painter.ProjectImages( GetImage(SOURCE), points, rects );
_point_cache.clear();
_rect_cache.clear();
}
}