Uses of Class
javafx.scene.image.PixelFormat
-
Packages that use PixelFormat 软件包 描述 javafx.scene.image 提供加载和显示图像的一组类。 -
-
Uses of PixelFormat in javafx.scene.image
Subclasses of PixelFormat in javafx.scene.image Modifier and Type Class 描述 classWritablePixelFormat<T extends Buffer>表示可以存储全色的像素格式的对象PixelFormat可以用作从任意图像写入像素数据的目的地格式。Methods in javafx.scene.image that return PixelFormat Modifier and Type 方法 描述 static PixelFormat<ByteBuffer>PixelFormat. createByteIndexedInstance(int[] colors)创建描述像素布局的PixelFormat实例,将像素存储为单个字节,表示索引到INT_ARGB格式的 非预乘颜色值的指定查找表中。static PixelFormat<ByteBuffer>PixelFormat. createByteIndexedPremultipliedInstance(int[] colors)创建描述像素布局的PixelFormat实例,将像素存储为单字节,表示索引到INT_ARGB_PRE格式的 预乘颜色值的指定查找表中。static PixelFormat<ByteBuffer>PixelFormat. getByteRgbInstance()返回描述像素布局的PixelFormat实例,其中存储在相邻字节中的像素的颜色分量按照增加的索引顺序存储:红色,绿色和蓝色。PixelFormatPixelReader. getPixelFormat()该方法返回表面存储其像素的PixelFormat,或大致相当的像素格式,为了阅读它们,可以轻松地转换其像素。PixelFormatPixelWriter. getPixelFormat()该方法返回表面存储其像素的PixelFormat,或大致相当的像素格式,从而可以轻松地将像素转换为用于编写它们的像素。Methods in javafx.scene.image with parameters of type PixelFormat Modifier and Type 方法 描述 voidPixelWriter. setPixels(int x, int y, int w, int h, PixelFormat<ByteBuffer> pixelformat, byte[] buffer, int offset, int scanlineStride)将来自字节数组的像素数据存储到表面的矩形区域中。voidPixelWriter. setPixels(int x, int y, int w, int h, PixelFormat<IntBuffer> pixelformat, int[] buffer, int offset, int scanlineStride)将来自int数组的像素数据存储到表面的矩形区域中。<T extends Buffer>
voidPixelWriter. setPixels(int x, int y, int w, int h, PixelFormat<T> pixelformat, T buffer, int scanlineStride)将像素数据从缓冲区存储到表面的矩形区域。
-