|
|
@@ -346,9 +346,14 @@ public: |
|
|
|
*/
|
|
|
|
void setPixelColour (int x, int y, const Colour& colour) const noexcept;
|
|
|
|
|
|
|
|
uint8* data;
|
|
|
|
PixelFormat pixelFormat;
|
|
|
|
int lineStride, pixelStride, width, height;
|
|
|
|
/** Returns the size of the bitmap. */
|
|
|
|
Rectangle<int> getBounds() const noexcept { return Rectangle<int> (width, height); }
|
|
|
|
|
|
|
|
uint8* data; /**< The raw pixel data, packed according to the image's pixel format. */
|
|
|
|
PixelFormat pixelFormat; /**< The format of the data. */
|
|
|
|
int lineStride; /**< The number of bytes between each line. */
|
|
|
|
int pixelStride; /**< The number of bytes between each pixel. */
|
|
|
|
int width, height;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Used internally by custom image types to manage pixel data lifetime. */
|
|
|
@@ -379,8 +384,7 @@ public: |
|
|
|
@param alphaThreshold for a semi-transparent image, any pixels whose alpha is
|
|
|
|
above this level will be considered opaque
|
|
|
|
*/
|
|
|
|
void createSolidAreaMask (RectangleList& result,
|
|
|
|
float alphaThreshold = 0.5f) const;
|
|
|
|
void createSolidAreaMask (RectangleList& result, float alphaThreshold) const;
|
|
|
|
|
|
|
|
//==============================================================================
|
|
|
|
/** Returns a NamedValueSet that is attached to the image and which can be used for
|
|
|
|