Hello Sir,
In Catalano.Imaging.Filters, most methods alter
pixelsGray[xstrideX+ystrideY] = (byte) value using FastBitmap.setGray method.
How does pixelsGRAY affects this.bufferedImage in FastBitmap.toIcon/FastBitmap.saveAsJPG?
Also, I am having difficulties displaying images with DataBufferUShort after altering their FBM.pixelsGray[], may I ask if you have any advice to display/save the altered images?
Hello Sir, In Catalano.Imaging.Filters, most methods alter pixelsGray[xstrideX+ystrideY] = (byte) value using FastBitmap.setGray method. How does pixelsGRAY affects this.bufferedImage in FastBitmap.toIcon/FastBitmap.saveAsJPG?
Also, I am having difficulties displaying images with DataBufferUShort after altering their FBM.pixelsGray[], may I ask if you have any advice to display/save the altered images?
Currently, Ive tried altering FastBitmap.java as follow private void refresh() { this.raster = getRaster();
}
The values in pixelsGray became negative when using invert(), however the this.bufferedImage remains the same.