File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change
1
+ 20/02/2025:
2
+ - Re-ordered initializer lists in Watermark class constructor
3
+
4
+
1
5
19/02/2025:
2
6
- Refactor of watermarking code to allow it to be applied to JPEG2000 and JPEG source images when
3
7
requesting a region through the CVT function. Watermarking now applied as the very final step after
Original file line number Diff line number Diff line change @@ -74,22 +74,22 @@ class Watermark {
74
74
75
75
// / Constructor
76
76
Watermark () :
77
- _isSet ( false ),
78
- _watermark ( NULL ),
79
77
_opacity ( 0.0 ),
80
- _probability ( 0.0 ) {};
78
+ _probability ( 0.0 ),
79
+ _isSet ( false ),
80
+ _watermark ( NULL ){};
81
81
82
82
// / Constructor
83
83
/* * @param file image file path
84
84
@param opacity opacity applied to watermark
85
- @param probability probability that watermark will be applied to a particular tile
85
+ @param probability probability (in range 0.0 -> 1.0) that watermark will be applied to a particular tile
86
86
*/
87
87
Watermark ( const std::string& file, float opacity, float probability ) :
88
- _image ( file ),
89
88
_width ( 0 ),
90
89
_height ( 0 ),
91
90
_channels ( 0 ),
92
91
_bpc ( 0 ),
92
+ _image ( file ),
93
93
_opacity ( opacity ),
94
94
_probability ( probability ),
95
95
_isSet ( false ),
You can’t perform that action at this time.
0 commit comments