J2KSetDefaults example for C#

//LEADDICOM1 is a DICOM Dataset defined outside this method
private void TestJ2KSetDefaults()
{
   string msg = null;
   // Display all the default JPEG2000 advanced options
   LEADDICOM1.J2KOptions().J2KSetDefaults();
   msg = msg + "J2KUseColorTransform = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KUseColorTransform) + System.Environment.NewLine;
   msg = msg + "J2KDerivedQuantization = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KDerivedQuantization) + System.Environment.NewLine;
   msg = msg + "J2KXOsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KXOsiz) + System.Environment.NewLine;
   msg = msg + "J2KYOsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KYOsiz) + System.Environment.NewLine;
   msg = msg + "J2KXTsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KXTsiz) + System.Environment.NewLine;
   msg = msg + "J2KYTsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KYTsiz) + System.Environment.NewLine;
   msg = msg + "J2KXTOsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KXTOsiz) + System.Environment.NewLine;
   msg = msg + "J2KYTOsiz = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KYTOsiz) + System.Environment.NewLine;
   msg = msg + "J2KDecompLevel = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KDecompLevel) + System.Environment.NewLine;
   msg = msg + "J2KProgressOrder = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KProgressOrder) + System.Environment.NewLine;
   msg = msg + "J2KCodBlockWidth = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCodBlockWidth) + System.Environment.NewLine;
   msg = msg + "J2KCodBlockHeight = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCodBlockHeight) + System.Environment.NewLine;
   msg = msg + "J2KCBS_SelectiveACBypass = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_SelectiveACBypass) + System.Environment.NewLine;
   msg = msg + "J2KCBS_ResetContextOnBoundaries = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_ResetContextOnBoundaries) + System.Environment.NewLine;
   msg = msg + "J2KCBS_TerminationOnEachPass = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_TerminationOnEachPass) + System.Environment.NewLine;
   msg = msg + "J2KCBS_VerticallyCausalContext = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_VerticallyCausalContext) + System.Environment.NewLine;
   msg = msg + "J2KCBS_PredictableTermination = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_PredictableTermination) + System.Environment.NewLine;
   msg = msg + "J2KCBS_ErrorResilienceSymbol = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KCBS_ErrorResilienceSymbol) + System.Environment.NewLine;
   msg = msg + "J2KGuardBits = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KGuardBits) + System.Environment.NewLine;
   msg = msg + "J2KDerivedBaseMantissa = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KDerivedBaseMantissa) + System.Environment.NewLine;
   msg = msg + "J2KDerivedBaseExponent = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KDerivedBaseExponent) + System.Environment.NewLine;
   msg = msg + "J2KUseSOPMarker = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KUseSOPMarker) + System.Environment.NewLine;
   msg = msg + "J2KUseEPHMarker = " + System.Convert.ToString(LEADDICOM1.J2KOptions().J2KUseEPHMarker) + System.Environment.NewLine;
   MessageBox.Show(msg);
}