#include "Base64.h"
#include "BitmapImage.h"
+#include "ColorSpace.h"
#include "ImageData.h"
#include "GraphicsContext.h"
#include "NotImplemented.h"
{
}
-ImageBuffer::ImageBuffer(const IntSize& size, ImageColorSpace colorSpace, bool& success)
+ImageBuffer::ImageBuffer(const IntSize& size, ColorSpace, bool& success)
: m_data(size)
, m_size(size)
{
ctx->save();
ctx->clip(frameRect());
- ctx->setFillColor(Color::white, DeviceColorSpace);
+ ctx->setFillColor(Color::white, ColorSpaceDeviceRGB);
ctx->fillRect(frameRect());
if (frameRect().contains(imageRect)) {
// Leave a 2 pixel padding.
IntRect innerRect = frameRect();
innerRect.inflate(-pixelWidth);
// Draw a 2 pixel light gray border.
- ctx->setStrokeColor(Color::lightGray, DeviceColorSpace);
+ ctx->setStrokeColor(Color::lightGray, ColorSpaceDeviceRGB);
ctx->strokeRect(innerRect, pixelWidth);
}
// Draw the image in the center
- ctx->drawImage(image.get(), DeviceColorSpace, imageRect.location());
+ ctx->drawImage(image.get(), ColorSpaceDeviceRGB, imageRect.location());
ctx->restore();
}