|
@@ -1,5 +1,3 @@
|
1
|
|
-
|
2
|
|
-
|
3
|
1
|
# Arrays - Simple Image Editor
|
4
|
2
|
|
5
|
3
|
![main1.png](images/main1.png)
|
|
@@ -81,7 +79,7 @@ The following functions are useful to work with data of type `QRgb`:
|
81
|
79
|
|
82
|
80
|
####Examples:
|
83
|
81
|
|
84
|
|
-1. `QRgb myRgb = qRgb(0xff, 0x00, 0xff);`: Assigns the value `0xff00ff` to `myRgb` which represents the color ![figure2.jpg](images/figure2.jpg)
|
|
82
|
+1. `QRgb myRgb = qRgb(0xff, 0x00, 0xff);`: Assigns the value `0xff00ff` to `myRgb` which represents the color ![figure2.png](images/figure2.png)
|
85
|
83
|
|
86
|
84
|
Notice that the value `0xff00ff` represents the values `0xff`, `0x0`, and `0xff`, that correspond to the red, green and blue components in `myRgb`.
|
87
|
85
|
|
|
@@ -128,9 +126,11 @@ int main() {
|
128
|
126
|
|
129
|
127
|
---
|
130
|
128
|
|
131
|
|
-!INCLUDE "../../eip-diagnostic/simple-image-editor/en/diag-simple-image-editor-01.html"
|
|
129
|
+!INCLUDE "../../eip-diagnostic/simple-image-editor/en/diag-simple-image-editor-01.html"
|
|
130
|
+<br>
|
132
|
131
|
|
133
|
|
-!INCLUDE "../../eip-diagnostic/simple-image-editor/en/diag-simple-image-editor-02.html"
|
|
132
|
+!INCLUDE "../../eip-diagnostic/simple-image-editor/en/diag-simple-image-editor-02.html"
|
|
133
|
+<br>
|
134
|
134
|
|
135
|
135
|
|
136
|
136
|
---
|
|
@@ -268,4 +268,4 @@ Output: true if n is prime, false otherwise
|
268
|
268
|
|
269
|
269
|
[1] http://www.willamette.edu/~gorr/classes/GeneralGraphics/imageFormats/24bits.gif
|
270
|
270
|
|
271
|
|
-[2] http://doc.qt.io/qt-4.8/qimage.html.
|
|
271
|
+[2] http://doc.qt.io/qt-4.8/qimage.html.
|