ddsblock4x4.java

来自「world wind java sdk 源码」· Java 代码 · 共 37 行

JAVA
37
字号
package gov.nasa.worldwind.formats.nitfs;import java.nio.ByteBuffer;/*Copyright (C) 2001, 2007 United States Governmentas represented by the Administrator of theNational Aeronautics and Space Administration.All Rights Reserved.*//** * @author lado * @version $Id: DDSBlock4x4 Apr 21, 2007 10:33:06 AM */class DDSBlock4x4{    public short color0, color1;    public int   bitmask;    public DDSBlock4x4( short color0, short color1, int bitmask )    {        this.color0 = color0;        this.color1 = color1;        this.bitmask = bitmask;    }    public void writeTo(ByteBuffer buffer)    {        if(null != buffer)        {            buffer.putShort( this.color0 );            buffer.putShort( this.color1 );            buffer.putInt( this.bitmask );        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?