当前位置: 首页>>代码示例>>C++>>正文


C++ AffineTransform::followedBy方法代码示例

本文整理汇总了C++中AffineTransform::followedBy方法的典型用法代码示例。如果您正苦于以下问题:C++ AffineTransform::followedBy方法的具体用法?C++ AffineTransform::followedBy怎么用?C++ AffineTransform::followedBy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AffineTransform的用法示例。


在下文中一共展示了AffineTransform::followedBy方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: fillPath

    void fillPath (const Path& p, const AffineTransform& transform)
    {
        currentState->createBrush();
        ComSmartPtr <ID2D1Geometry> geometry (pathToPathGeometry (p, transform.followedBy (currentState->transform)));

        if (renderingTarget != nullptr)
            renderingTarget->FillGeometry (geometry, currentState->currentBrush);
    }
开发者ID:anthonyhuecouret,项目名称:argotlunar,代码行数:8,代码来源:juce_win32_Direct2DGraphicsContext.cpp

示例2: geometry

void Direct2DLowLevelGraphicsContext::fillPath (const Path& p, const AffineTransform& transform)
{
    renderingTarget->SetTransform (D2D1::IdentityMatrix());
    currentState->createBrush();
    ComSmartPtr <ID2D1Geometry> geometry (pathToPathGeometry (p, transform.followedBy (currentState->transform)));

    if (renderingTarget != nullptr)
        renderingTarget->FillGeometry (geometry, currentState->currentBrush);
}
开发者ID:sonic59,项目名称:JuceDirect2DS2,代码行数:9,代码来源:juce_win32_Direct2DGraphicsContext.cpp

示例3: img

void Direct2DLowLevelGraphicsContext::drawImage (const Image& image, const AffineTransform& transform)
{
    renderingTarget->SetTransform (transformToMatrix (transform.followedBy (currentState->transform)));

    D2D1_SIZE_U size;
    size.width = image.getWidth();
    size.height = image.getHeight();

    D2D1_BITMAP_PROPERTIES bp = D2D1::BitmapProperties();

    Image img (image.convertedToFormat (Image::ARGB));
    Image::BitmapData bd (img, Image::BitmapData::readOnly);
    bp.pixelFormat = renderingTarget->GetPixelFormat();
    bp.pixelFormat.alphaMode = D2D1_ALPHA_MODE_PREMULTIPLIED;

    {
        ComSmartPtr <ID2D1Bitmap> tempBitmap;
        renderingTarget->CreateBitmap (size, bd.data, bd.lineStride, bp, tempBitmap.resetAndGetPointerAddress());
        if (tempBitmap != nullptr)
            renderingTarget->DrawBitmap (tempBitmap);
    }
}
开发者ID:sonic59,项目名称:JuceDirect2DS2,代码行数:22,代码来源:juce_win32_Direct2DGraphicsContext.cpp

示例4: addTransform

 void addTransform (const AffineTransform& transform)
 {
     currentState->transform = transform.followedBy (currentState->transform);
 }
开发者ID:anthonyhuecouret,项目名称:argotlunar,代码行数:4,代码来源:juce_win32_Direct2DGraphicsContext.cpp

示例5:

void Direct2DLowLevelGraphicsContext::addTransform (const AffineTransform& transform)
{
    currentState->transform = transform.followedBy (currentState->transform);
}
开发者ID:sonic59,项目名称:JuceDirect2DS2,代码行数:4,代码来源:juce_win32_Direct2DGraphicsContext.cpp


注:本文中的AffineTransform::followedBy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。