@@ -49,6 +49,22 @@ public abstract class VImage extends VType implements AlarmProvider, TimeProvide
4949 */
5050 public abstract int getYOffset ();
5151
52+ /**
53+ * Is the horizontal axis reversed?
54+ * Defaults to false.
55+ *
56+ * @return <code>true</code> if axis is reversed
57+ */
58+ public abstract boolean isXReversed ();
59+
60+ /**
61+ * Is the vertical axis reversed?
62+ * Defaults to false.
63+ *
64+ * @return <code>true</code> if axis is reversed
65+ */
66+ public abstract boolean isYReversed ();
67+
5268 /**
5369 * Image data;
5470 *
@@ -85,7 +101,7 @@ public abstract class VImage extends VType implements AlarmProvider, TimeProvide
85101 * @return a new instance of VImage
86102 */
87103 public static VImage of (int height , int width , final ListNumber data , VImageDataType imageDataType , VImageType vImageType , Alarm alarm , Time time ) {
88- return of (height , width , 0 , 0 , data , imageDataType , vImageType , alarm , time );
104+ return of (height , width , 0 , 0 , false , false , data , imageDataType , vImageType , alarm , time );
89105 }
90106
91107 /**
@@ -95,15 +111,18 @@ public static VImage of(int height, int width, final ListNumber data, VImageData
95111 * @param width image width
96112 * @param xoffset horizontal offset
97113 * @param yoffset vertical offset
114+ * @param xreversed is horizontal axis reversed?
115+ * @param yreversed is vertical axis reversed?
98116 * @param data image data
99117 * @param imageDataType image data type
100118 * @param vImageType image type
101119 * @param alarm alarm information
102120 * @param time timestamp
103121 * @return a new instance of VImage
104122 */
105- public static VImage of (int height , int width , int xoffset , int yoffset , final ListNumber data , VImageDataType imageDataType , VImageType vImageType , Alarm alarm , Time time ) {
106- return new IVImage (height , width , xoffset , yoffset , data , imageDataType , vImageType , alarm , time );
123+ public static VImage of (int height , int width , int xoffset , int yoffset , boolean xreversed , boolean yreversed ,
124+ final ListNumber data , VImageDataType imageDataType , VImageType vImageType , Alarm alarm , Time time ) {
125+ return new IVImage (height , width , xoffset , yoffset , xreversed , yreversed , data , imageDataType , vImageType , alarm , time );
107126 }
108127
109128 @ Override
0 commit comments