The nativeColor methods take a given color defined as an RGB QColor
The nativeColor methods take a given color defined as an RGB TQColor
and fills a byte array with the corresponding color in the
the colorspace managed by this strategy.
The profile parameter is the profile of the paint device; the other profile
is the display profile -- since we are moving from QColor
is the display profile -- since we are moving from TQColor
that have most likely been picked from the display itself.
XXX: We actually do not use the display yet, nor the paint device profile" isSpecification="false" isLeaf="false" visibility="public" xmi.id="74" isRoot="false" isAbstract="false" name="nativeColor" >
@ -228,7 +228,7 @@ XXX: We actually do not use the display yet, nor the paint device profile" isSpe
</UML:BehavioralFeature.parameter>
</UML:Operation>
<UML:Operation comment="The toQColor methods take a byte array that is at least pixelSize() long
and converts the contents to a QColor, using the given profile as a source
and converts the contents to a TQColor, using the given profile as a source
profile and the display profile as a destination profile.
XXX: We actually do not use the display yet, nor the paint device profile
@ -277,7 +277,7 @@ color strategy." isSpecification="false" isLeaf="false" visibility="public" xmi.
<UML:Operation comment="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a QColor and back. Reimplement these methods in your color strategy!///**
<UML:Operation comment="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a TQColor and back. Reimplement these methods in your color strategy!///**
Set the alpha channel to the given value.
pixels -- a pointer to the pixels that will have their alpha set to this value
@ -503,10 +503,10 @@ model together." isSpecification="false" isLeaf="false" visibility="protected" x
<javacodedocumentation tag="" indentLevel="1" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB QColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from QColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<javacodedocumentation tag="" indentLevel="1" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB TQColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from TQColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<javacodedocumentation tag="" indentLevel="1" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a QColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<javacodedocumentation tag="" indentLevel="1" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a TQColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<javacodedocumentation tag="" indentLevel="1" text="Convert the pixels in data to (8-bit BGRA) QImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<javacodedocumentation tag="" indentLevel="1" text="Convert the pixels in data to (8-bit BGRA) TQImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<javacodedocumentation tag="" indentLevel="1" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a QColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<javacodedocumentation tag="" indentLevel="1" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a TQColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<cppcodedocumentation tag="" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB QColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from QColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<cppcodedocumentation tag="" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB TQColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from TQColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<cppcodedocumentation tag="" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a QColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<cppcodedocumentation tag="" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a TQColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<cppcodedocumentation tag="" text="Convert the pixels in data to (8-bit BGRA) QImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<cppcodedocumentation tag="" text="Convert the pixels in data to (8-bit BGRA) TQImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<cppcodedocumentation tag="" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a QColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<cppcodedocumentation tag="" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a TQColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<cppcodedocumentation tag="" indentLevel="1" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB QColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from QColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<cppcodedocumentation tag="" indentLevel="1" text="//================= Conversion functions ==================================///**&#010;The nativeColor methods take a given color defined as an RGB TQColor&#010;and fills a byte array with the corresponding color in the&#010;the colorspace managed by this strategy.&#010;&#010;The profile parameter is the profile of the paint device; the other profile&#010;is the display profile -- since we are moving from TQColor&#010;that have most likely been picked from the display itself.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile" />
<cppcodedocumentation tag="" indentLevel="1" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a QColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<cppcodedocumentation tag="" indentLevel="1" text="The toQColor methods take a byte array that is at least pixelSize() long&#010;and converts the contents to a TQColor, using the given profile as a source&#010;profile and the display profile as a destination profile.&#010;&#010;XXX: We actually do not use the display yet, nor the paint device profile&#010;" />
<cppcodedocumentation tag="" indentLevel="1" text="Convert the pixels in data to (8-bit BGRA) QImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<cppcodedocumentation tag="" indentLevel="1" text="Convert the pixels in data to (8-bit BGRA) TQImage using the specified profiles.&#010;The pixels are supposed to be encoded in this color model.&#010;&#010;@param data A pointer to a contiguous memory region containing width * height pixels&#010;@param width in pixels&#010;@param height in pixels&#010;@param srcProfile source profile&#010;@param dstProfile destination profile&#010;@param renderingIntent the rendering intent&#010;@param exposure The exposure setting for rendering a preview of a high dynamic range image." />
<cppcodedocumentation tag="" indentLevel="1" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a QColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<cppcodedocumentation tag="" indentLevel="1" text="//============================== Manipulation fucntions ==========================//// // The manipulation functions have default implementations that _convert_ the pixel// to a TQColor and back. Reimplement these methods in your color strategy!///**&#010;Set the alpha channel to the given value.&#010;&#010;pixels -- a pointer to the pixels that will have their alpha set to this value&#010;alpha -- XXX: This must become int or float&#010;nPixels -- the number of pixels&#010;&#010;XXX: Also add a function that modifies the current alpha with the given alpha, i.e., premultiply them?" />
<UML:Operation comment="Create an RGBA QImage from a rectangle in the paint device.
<UML:Operation comment="Create an RGBA TQImage from a rectangle in the paint device.
The dimensions is so that it takes what is currently on screen. relies on the image() to return an image.
profile RGB profile to use in conversion. May be 0, in which
@ -1071,7 +1071,7 @@ The color values will be transformed from the profile of
</UML:Operation>
<UML:Operation comment="Set the specified pixel to the specified color. Note that this
bypasses KisPainter. the PaintDevice is here used as an equivalent
to QImage, not QPixmap. This means that this is not undoable; also,
to TQImage, not QPixmap. This means that this is not undoable; also,
there is no compositing with an existing value at this location.
The color values will be transformed from the display profile to
@ -1754,7 +1754,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//**
An data extension mechanism for Chalk.
An annotation can be of something like a QByteArray or a QString op a more specific
An annotation can be of something like a QByteArray or a TQString op a more specific
datatype that can be attached to an image (or maybe later, if needed, to a layer)
and contains data that must be associated with an image for purposes of import/export." isSpecification="false" isLeaf="false" visibility="public" xmi.id="445" isRoot="false" isAbstract="false" name="KisAnnotation" >
<UML:GeneralizableElement.generalization>
@ -2146,7 +2146,7 @@ and the clipboard." isSpecification="false" isLeaf="false" visibility="public" x
<UML:Operation comment="Returns a QImage representing this resource. This image could be null." isSpecification="false" isLeaf="false" visibility="public" xmi.id="878" isRoot="false" isAbstract="true" name="img" >
<UML:Operation comment="Returns a TQImage representing this resource. This image could be null." isSpecification="false" isLeaf="false" visibility="public" xmi.id="878" isRoot="false" isAbstract="true" name="img" >
<javacodedocumentation tag="" indentLevel="1" text="Create an RGBA QImage from a rectangle in the paint device.&#010;&#010;x, y left-top point of the rect of pixels&#010;w, h width and height in pixels&#010;profile RGB profile to use in conversion. May be 0, in which&#010;case it's up to the colour strategy to choose a profile (most&#010;like sRGB)." />
<javacodedocumentation tag="" indentLevel="1" text="Create an RGBA TQImage from a rectangle in the paint device.&#010;&#010;x, y left-top point of the rect of pixels&#010;w, h width and height in pixels&#010;profile RGB profile to use in conversion. May be 0, in which&#010;case it's up to the colour strategy to choose a profile (most&#010;like sRGB)." />
<javacodedocumentation tag="" indentLevel="1" text="Create an RGBA QImage from a rectangle in the paint device.&#010;&#010;The dimensions is so that it takes what is currently on screen. relies on the image() to return an image.&#010;profile RGB profile to use in conversion. May be 0, in which&#010;case it's up to the colour strategy to choose a profile (most&#010;like sRGB)." />
<javacodedocumentation tag="" indentLevel="1" text="Create an RGBA TQImage from a rectangle in the paint device.&#010;&#010;The dimensions is so that it takes what is currently on screen. relies on the image() to return an image.&#010;profile RGB profile to use in conversion. May be 0, in which&#010;case it's up to the colour strategy to choose a profile (most&#010;like sRGB)." />
<javacodedocumentation tag="" indentLevel="1" text="Set the specified pixel to the specified color. Note that this&#010;bypasses KisPainter. the PaintDevice is here used as an equivalent&#010;to QImage, not QPixmap. This means that this is not undoable; also,&#010;there is no compositing with an existing value at this location.&#010;&#010; The color values will be transformed from the display profile to&#010; the paint device profile.&#010;&#010;@return true if the operation was succesful" />
<javacodedocumentation tag="" indentLevel="1" text="Set the specified pixel to the specified color. Note that this&#010;bypasses KisPainter. the PaintDevice is here used as an equivalent&#010;to TQImage, not QPixmap. This means that this is not undoable; also,&#010;there is no compositing with an existing value at this location.&#010;&#010; The color values will be transformed from the display profile to&#010; the paint device profile.&#010;&#010;@return true if the operation was succesful" />
<javacodedocumentation tag="" text="Class KisAnnotation&#010;This file is part of the KDE project&#010;&#010;Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>&#010;&#010;This program is free software; you can redistribute it and/or modify&#010;it under the terms of the GNU General Public License as published by&#010;the Free Software Foundation; either version 2 of the License, or&#010;(at your option) any later version.&#010;&#010;This program is distributed in the hope that it will be useful,&#010;but WITHOUT ANY WARRANTY; without even the implied warranty of&#010;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&#010;GNU General Public License for more details.&#010;&#010;You should have received a copy of the GNU General Public License&#010;along with this program; if not, write to the Free Software&#010;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.&#010;//**&#010;An data extension mechanism for Chalk.&#010;&#010;An annotation can be of something like a QByteArray or a QString op a more specific&#010;datatype that can be attached to an image (or maybe later, if needed, to a layer)&#010;and contains data that must be associated with an image for purposes of import/export." />
<javacodedocumentation tag="" text="Class KisAnnotation&#010;This file is part of the KDE project&#010;&#010;Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>&#010;&#010;This program is free software; you can redistribute it and/or modify&#010;it under the terms of the GNU General Public License as published by&#010;the Free Software Foundation; either version 2 of the License, or&#010;(at your option) any later version.&#010;&#010;This program is distributed in the hope that it will be useful,&#010;but WITHOUT ANY WARRANTY; without even the implied warranty of&#010;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the&#010;GNU General Public License for more details.&#010;&#010;You should have received a copy of the GNU General Public License&#010;along with this program; if not, write to the Free Software&#010;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.&#010;//**&#010;An data extension mechanism for Chalk.&#010;&#010;An annotation can be of something like a QByteArray or a TQString op a more specific&#010;datatype that can be attached to an image (or maybe later, if needed, to a layer)&#010;and contains data that must be associated with an image for purposes of import/export." />