Tag: 栅格

JMapViewer,将栅格加载到某个位置

我想在JMapViewer中的地图上加载并显示光栅文件。 光栅文件: 应该装在特定的位置, 使用缩放操作动态更改大小, 我希望JMapViewer支持这些操作。 目前,我正在使用从MapMarkerCircle派生的类: public class ImageViewer extends MapMarkerCircle implements MapMarker { private BufferedImage img; public ImageViewer(Coordinate position, BufferedImage img) { this(position, 1, img);} public ImageViewer(Coordinate position, double radius, BufferedImage img) { super(position, radius); this.img = img; } public void paint(Graphics g, Point position, int sc) { int w = (int) (img.getWidth() * […]

如何在java中进行2 x 3阶光栅扫描?

我有一个缓冲的图像(说Ib )。 我想采用光栅扫描来订购2 x 3块(Say Bb ),像素为p1,p2 … p6 。 如何在java中执行此操作?