Beispiel #1
0
        private void InitDevIL()
        {
            m_importer = new ImageImporter();
            m_exporter = new ImageExporter();
            ImageState state = new ImageState();

            state.AbsoluteFormat   = DataFormat.BGRA;
            state.AbsoluteDataType = DataType.UnsignedByte;
            state.AbsoluteOrigin   = OriginLocation.UpperLeft;
            state.Apply();

            CompressionState comp = new CompressionState();

            comp.KeepDxtcData = true;
            comp.Apply();

            SaveState sstate = new SaveState();

            sstate.OverwriteExistingFile = true;
            sstate.Apply();
        }
Beispiel #2
0
 private void ApplyImageStates()
 {
     m_imageState.Apply();
     m_compState.Apply();
 }