Beispiel #1
0
        private void v_XCImageCollectionSet(object sender, XCImageCollectionSetEventArgs e)
        {
            var enabled = e.Collection != null;

            saveitem.Enabled  = enabled;
            transItem.Enabled = enabled;
            bytesMenu.Enabled = enabled;
            miPalette.Enabled = enabled;

            if (e.Collection != null)
            {
                bytesMenu.Enabled         =
                    miPalette.Enabled     =
                        transItem.Enabled = e.Collection.IXCFile.FileOptions.BitDepth == 8;

                xConsole.AddLine("bpp is: " + e.Collection.IXCFile.FileOptions.BitDepth);
            }
        }
Beispiel #2
0
		void v_XCImageCollectionSet(object sender, XCImageCollectionSetEventArgs e)
		{
			saveitem.Enabled = transItem.Enabled = bytesMenu.Enabled = miPalette.Enabled = e.Collection != null;

			if (e.Collection != null)
			{
				bytesMenu.Enabled = miPalette.Enabled = transItem.Enabled = e.Collection.IXCFile.FileOptions.BitDepth == 8;
				xConsole.AddLine("bpp is: " + e.Collection.IXCFile.FileOptions.BitDepth);
			}
		}