mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Big rewrite of the LowLevelGraphicsSoftwareRenderer class, adding internal support for complex clipping regions - this will temporarily make font rendering quite slow, until it gets re-optimised for this new design. Changed the Image class to remove the lockPixelData methods, and replaced these with an object Image::BitmapData, which is easier to use.
This commit is contained in:
parent
9fc4b6d822
commit
6fdde63a63
25 changed files with 3542 additions and 4458 deletions
|
|
@ -487,16 +487,14 @@ void LowLevelGraphicsPostScriptRenderer::writeImage (const Image& im,
|
|||
const int h = jmin (maxH, im.getHeight());
|
||||
|
||||
int charsOnLine = 0;
|
||||
int lineStride, pixelStride;
|
||||
const uint8* data = im.lockPixelDataReadOnly (0, 0, w, h, lineStride, pixelStride);
|
||||
|
||||
const Image::BitmapData srcData (im, 0, 0, w, h);
|
||||
Colour pixel;
|
||||
|
||||
for (int y = h; --y >= 0;)
|
||||
{
|
||||
for (int x = 0; x < w; ++x)
|
||||
{
|
||||
const uint8* pixelData = data + lineStride * y + pixelStride * x;
|
||||
const uint8* pixelData = srcData.getPixelPointer (x, y);
|
||||
|
||||
if (x >= sx && y >= sy)
|
||||
{
|
||||
|
|
@ -534,8 +532,6 @@ void LowLevelGraphicsPostScriptRenderer::writeImage (const Image& im,
|
|||
}
|
||||
}
|
||||
|
||||
im.releasePixelDataReadOnly (data);
|
||||
|
||||
out << "\n>}\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue