YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
平台无关的图像块操作。 更多...
#include "../Core/ygdibase.h"
#include "../Core/ycutil.h"
#include <ystdex/algorithm.hpp>
#include <ystdex/iterator.hpp>
类 | |
struct | YSLib::Drawing::PixelFiller< _tPixel > |
像素填充器。 更多... | |
struct | YSLib::Drawing::SequenceTransformer |
序列转换器。 更多... | |
struct | YSLib::Drawing::VerticalLineTransfomer |
竖直线转换器。 更多... | |
struct | YSLib::Drawing::RectTransformer |
标准矩形转换器。 更多... | |
struct | YSLib::Drawing::BlitLoop< _bPositiveScan > |
循环:按指定扫描顺序复制一块矩形区域的像素。 更多... | |
struct | YSLib::Drawing::BlitTransparentLoop< _bPositiveScan > |
循环:按指定扫描顺序复制一块矩形区域的像素。 更多... | |
struct | YSLib::Drawing::BlitBlendLoop< _bPositiveScan > |
循环:按指定扫描顺序复制一块矩形区域的像素。 更多... | |
命名空间 | |
namespace | YSLib |
namespace | YSLib::Drawing |
图形处理。 | |
类型定义 | |
typedef ystdex::pair_iterator < ConstBitmapPtr, const u8 * > | YSLib::Drawing::IteratorPair |
Alpha 光栅化源迭代器对。 | |
typedef ystdex::pair_iterator < ystdex::pseudo_iterator < const PixelType >, const u8 * > | YSLib::Drawing::MonoIteratorPair |
Alpha 单色光栅化源迭代器对。 | |
函数 | |
YF_API bool | YSLib::Drawing::BlitBounds (const Point &dp, const Point &sp, const Size &ds, const Size &ss, const Size &cs, int &min_x, int &min_y, int &delta_x, int &delta_y) |
贴图边界计算器。 | |
template<bool _bDec, typename _fCallable , typename _tScalar , typename _tDiff , typename _tOut , typename _tIn > | |
void | YSLib::Drawing::BlitScan (_fCallable &&f, _tScalar d_width, _tScalar s_width, _tDiff delta_x, _tDiff delta_y, _tOut dst, _tIn src) |
贴图扫描函数模板。 | |
template<template< bool > class _gBlitLoop, bool _bSwapLR, bool _bSwapUD, typename _tOut , typename _tIn > | |
void | YSLib::Drawing::Blit (_tOut dst, const Size &ds, _tIn src, const Size &ss, const Point &dp, const Point &sp, const Size &sc) |
贴图函数模板。 | |
template<typename _tPixel > | |
_tPixel * | YSLib::Drawing::ClearPixel (_tPixel *dst, size_t n) ynothrow |
清除指定位置的 n 个连续像素。 | |
template<typename _tPixel > | |
void | YSLib::Drawing::FillPixel (_tPixel *dst, size_t n, _tPixel c) |
使用 n 个指定像素连续填充指定位置。 | |
template<typename _tPixel > | |
void | YSLib::Drawing::FillVerticalLine (_tPixel *dst, size_t n, SDst dw, _tPixel c) |
使用 n 个指定像素竖直填充指定位置。 | |
template<typename _tPixel > | |
void | YSLib::Drawing::FillRect (_tPixel *dst, const Size &ds, const Point &sp, const Size &ss, _tPixel c) |
使用指定像素填充指定的标准矩形区域。 | |
template<typename _tPixel > | |
void | YSLib::Drawing::FillRect (_tPixel *dst, const Size &ds, const Rect &rSrc, _tPixel c) |
使用指定像素填充指定的标准矩形区域。 | |
template<typename _tPixel > | |
void | YSLib::Drawing::FillRect (_tPixel *dst, SDst dw, SDst dh, SPos sx, SPos sy, SDst sw, SDst sh, _tPixel c) |
使用指定像素填充指定的标准矩形区域。 | |
yconstexpr u8 | YSLib::Drawing::BLT_ALPHA_BITS (8) |
yconstexpr u32 | YSLib::Drawing::BLT_MAX_ALPHA ((1<< BLT_ALPHA_BITS)-1) |
yconstexpr u32 | YSLib::Drawing::BLT_ROUND (1<< (BLT_ALPHA_BITS-1)) |
yconstexpr u8 | YSLib::Drawing::BLT_THRESHOLD (8) |
yconstexpr u8 | YSLib::Drawing::BLT_THRESHOLD2 (128) |
yconstexpr u32 | YSLib::Drawing::BLT_ROUND_BR (BLT_ROUND|BLT_ROUND<< 16) |
u8 | YSLib::Drawing::component_blend (u8 d, u8 s, u8 a) |
PixelType | YSLib::Drawing::blitAlphaBlend (PixelType d, PixelType s, u8 a) |
template<typename _tOut , typename _tIn > | |
void | YSLib::Drawing::biltAlphaPoint (_tOut dst_iter, _tIn src_iter) |
template<> | |
void | YSLib::Drawing::biltAlphaPoint (PixelType *dst_iter, IteratorPair src_iter) |
template<class _fTransformPixel > | |
bool | YSLib::Drawing::TransformRect (const Graphics &g, const Point &pt, const Size &s, _fTransformPixel tp) |
以像素为单位变换标准矩形。 | |
template<class _fTransformPixel > | |
bool | YSLib::Drawing::TransformRect (const Graphics &g, const Rect &r, _fTransformPixel tp) |
以像素为单位变换标准矩形。 | |
YF_API void | YSLib::Drawing::CopyBuffer (const Graphics &, const Graphics &) |
以第一个参数作为目标,复制第二个参数的缓冲区内容。 | |
YF_API void | YSLib::Drawing::ClearImage (const Graphics &) |
清除图形接口上下文缓冲区。 | |
YF_API void | YSLib::Drawing::Fill (const Graphics &, Color) |
使用指定颜色填充图形接口上下文缓冲区。 | |
template<bool _bSwapLR, bool _bSwapUD> | |
int | YSLib::Drawing::BlitScale (const Point &dp, const Size &ds, int delta_x, int delta_y) |
贴图偏移量计算器。 | |
template<> | |
YF_API int | YSLib::Drawing::BlitScale< false, false > (const Point &, const Size &, int, int) |
template<> | |
YF_API int | YSLib::Drawing::BlitScale< true, false > (const Point &, const Size &, int, int) |
template<> | |
YF_API int | YSLib::Drawing::BlitScale< false, true > (const Point &, const Size &, int, int) |
template<> | |
YF_API int | YSLib::Drawing::BlitScale< true, true > (const Point &, const Size &, int, int) |
template<bool _bPositiveScan> | |
void | YSLib::Drawing::BlitLine (BitmapPtr &dst_iter, ConstBitmapPtr &src_iter, int delta_x) |
循环:按指定扫描顺序复制一行像素。 | |
template<> | |
void | YSLib::Drawing::BlitLine< false > (BitmapPtr &dst_iter, ConstBitmapPtr &src_iter, int delta_x) |
平台无关的图像块操作。
在文件 yblit.h 中定义.