RasterDialogFileTypesIndex Enumeration

Summary
Save dialog File types Index.
Syntax
C#
C++/CLI
public enum RasterDialogFileTypesIndex 
public enum class RasterDialogFileTypesIndex : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable   
Members
Value Member Description
0 Lead "LEAD (*.cmp)" format that supports the following bits per pixel values:
• 1-bit with RasterDialogCmp1SubTypesIndex sub-type(s).
• 8-bits with RasterDialogCmpSubTypesIndex sub-type(s).
• 24-bits with RasterDialogCmpSubTypesIndex sub-type(s).
1 Jpeg "Jpeg (*.jpg)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogJpeg8SubTypesIndex sub-type(s).
• 12-bits with RasterDialogJpeg12SubTypesIndex sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with RasterDialogJpeg24SubTypesIndex sub-type(s).
2 Cmw "LEAD Wavelet (*.cmw)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
• 12-bits with no sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with no sub-type(s).
3 Jpeg2000 "Jpeg 2000 (*.j2k;*.jp2)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 12-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 16-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 24-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 32-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 48-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
• 64-bits with RasterDialogJ2kSubTypesIndex sub-type(s).
4 Tiff (0x0000001A)"Tif (*.tif)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogTiff1SubTypesIndex sub-type(s).
• 2-bits with RasterDialogTiffOtherSubTypesIndex sub-type(s).
• 3-bits with RasterDialogTiffOtherSubTypesIndex sub-type(s).
• 4-bits with RasterDialogTiff4SubTypesIndex sub-type(s).
• 5-bits with RasterDialogTiffOtherSubTypesIndex sub-type(s).
• 6-bits with RasterDialogTiffOtherSubTypesIndex sub-type(s).
• 7-bits with RasterDialogTiffOtherSubTypesIndex sub-type(s).
• 8-bits with RasterDialogTiff8SubTypesIndex sub-type(s).
• 12-bits with RasterDialogTiff12SubTypesIndex sub-type(s).
• 16-bits with RasterDialogTiff16SubTypesIndex sub-type(s).
• 24-bits with RasterDialogTiff24SubTypesIndex sub-type(s).
• 32-bits with RasterDialogTiff32SubTypesIndex sub-type(s).
• 48-bits with RasterDialogTiff48SubTypesIndex sub-type(s).
• 64-bits with RasterDialogTiff64SubTypesIndex sub-type(s).
5 CompuServeGif "Gif (*.Gif)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 2-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 3-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 4-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 5-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 6-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 7-bits with RasterDialogGifSubTypesIndex sub-type(s).
• 8-bits with RasterDialogGifSubTypesIndex sub-type(s).
6 Png "Png (*.Png)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
• 32-bits with no sub-type(s).
• 48-bits with no sub-type(s).
• 64-bits with no sub-type(s).
7 WindowsBitmap "Windows Bitmap (*.bmp)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with RasterDialogBmpSubTypesIndex sub-type(s).
• 8-bits with RasterDialogBmpSubTypesIndex sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with no sub-type(s).
• 32-bits with no sub-type(s).
8 Abic "Adaptive bi-level image Compression (*.abic)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
• 4-bit with no sub-type(s).
9 AnimatedCursor "Animated Cursor (*.ani)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
10 Cals "Cals (*.cal)" format that supports the following bits per pixel values:
• 1-bit with RasterDialogCalsSubTypesIndex sub-type(s).
11 Cineon "Cineon (*.cin)" format that supports the following bits per pixel values:
• 24-bit with no sub-type(s).
12 Clipboard "Clipboard (*.clp)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with RasterDialogClpSubTypesIndex sub-type(s).
• 24-bits with no sub-type(s).
13 Wmz "Compressed Windows Metafile (*.wmz)" format that supports the following bits per pixel values:
• 24-bits with no sub-type(s).
14 DicomGray "DICOM DIC Gray (*.dic)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogDicomGray8SubTypesIndex sub-type(s).
• 16-bits with RasterDialogDicomGray16SubTypesIndex sub-type(s).
15 DicomColor "DICOM DIC Color (*.dic)" format that supports the following bits per pixel values:
• 24-bits with RasterDialogDicomColor24SubTypesIndex sub-type(s).
16 DrHalo "Dr Halo (*.cut)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
17 Eps "Eps (*.Eps)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
18 Exif "Exif (*.tif)" format that supports the following bits per pixel values:
• 24-bits with no sub-type(s).
19 FaxRaw "Fax (Raw) (*.fax)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogFaxSubTypesIndex sub-type(s).
20 FlexibleImageTransportSystem "Flexible Image Transport System (*.fit)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
• 16-bits with no sub-type(s).
• 32-bits with no sub-type(s).
21 Flc "Flc (*.flc)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
22 Fpx "Fpx (*.fpx)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogFpxSubTypesIndex sub-type(s).
• 24-bits with RasterDialogFpxSubTypesIndex sub-type(s).
23 Gem "Gem (*.img)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
24 GeoTiff "GeoTiff (*.tif)" format that supports the following bits per pixel values:
• 16-bits with no sub-type(s).
25 Iff "Iff (*.iff)" format that supports the following bits per pixel values:
• 16-bits with no sub-type(s).
26 Itg "Itg (*.itg)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
27 Jbig "Jbig (*.jbg)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 2-bits with no sub-type(s).
• 3-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 5-bits with no sub-type(s).
• 6-bits with no sub-type(s).
• 7-bits with no sub-type(s).
• 8-bits with no sub-type(s).
28 Jbig2 "Jbig2 (*.jb2)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
29 MacPaint "MacPaint (*.mac)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
30 MacPict "Mac PICT (*.pct)" format that supports the following bits per pixel values:
• 1-bit with no sub-type(s).
• 4-bit with no sub-type(s).
• 8-bit with no sub-type(s).
• 16-bit with no sub-type(s).
• 24-bit with no sub-type(s).
31 ModcaIoca "Modca:Ioca (*.ica)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogModca1SubTypesIndex sub-type(s).
• 4-bits with RasterDialogModca4SubTypesIndex sub-type(s).
32 Mrc "Mrc (*.mrc)" format that supports the following bits per pixel values:
• 24-bits with RasterDialogMrcSubTypesIndex sub-type(s).
33 MSPaint "MS Paint (*.msp)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
34 Os2Bitmap "Os/2 Bitmap (*.bmp)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogOs2SubTypesIndex sub-type(s).
• 4-bits with RasterDialogOs2SubTypesIndex sub-type(s).
• 8-bits with RasterDialogOs2SubTypesIndex sub-type(s).
• 24-bits with RasterDialogOs2SubTypesIndex sub-type(s).
35 Pbm "Pbm (*.pbm)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogPbmSubTypesIndex sub-type(s).
36 Pcx "Pcx (*.pcx)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
37 Pdf "Pdf (*.pdf)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogPdf1SubTypesIndex sub-type(s).
• 2-bits with RasterDialogPdf2SubTypesIndex sub-type(s).
• 4-bits with RasterDialogPdf4SubTypesIndex sub-type(s).
• 8-bits with RasterDialogPdf8SubTypesIndex sub-type(s).
• 24-bits with RasterDialogPdf24SubTypesIndex sub-type(s).
38 Pgm "Pgm (*.pgm)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogPgmSubTypesIndex sub-type(s).
39 Ppm "Ppm (*.ppm)" format that supports the following bits per pixel values:
• 24-bits with RasterDialogPpmSubTypesIndex sub-type(s).
40 Psd "Psd (*.psd)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
41 RawData "RAW data (*.raw)" format that supports the following bits per pixel values:
• 0-bits with no sub-type(s).
42 RawIoca "Raw IOCA (*.ica)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogRawIcaSubTypesIndex sub-type(s).
43 ScitexContinuousToneSct "Scitex Continuous Tone Sct (*.sct)" format that supports the following bits per pixel values:
• 24-bits with no sub-type(s).
44 Sgi "Sgi (*.sgi)" format that supports the following bits per pixel values:
• 8-bits with RasterDialogSgiSubTypesIndex sub-type(s).
• 24-bits with RasterDialogSgiSubTypesIndex sub-type(s).
• 32-bits with RasterDialogSgiSubTypesIndex sub-type(s).
45 StructuredFaxFile "Structured Fax File (*.sff)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
46 SunRaster "Sun Raster (*.ras)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogRasSubTypesIndex sub-type(s).
• 4-bits with RasterDialogRasSubTypesIndex sub-type(s).
• 8-bits with RasterDialogRasSubTypesIndex sub-type(s).
• 24-bits with RasterDialogRasSubTypesIndex sub-type(s).
• 32-bits with RasterDialogRasSubTypesIndex sub-type(s).
47 Tga "Tga (*.tga)" format that supports the following bits per pixel values:
• 8 -bits with RasterDialogTgaSubTypesIndex sub-type(s).
• 16-bits with RasterDialogTgaSubTypesIndex sub-type(s).
• 24-bits with RasterDialogTgaSubTypesIndex sub-type(s).
• 32-bits with RasterDialogTgaSubTypesIndex sub-type(s).
48 Tifx "Tifx (*.tifx)" format that supports the following bits per pixel values:
• 1 -bit with RasterDialogTifx1SubTypesIndex sub-type(s).
• 3-bits with RasterDialogTifx3SubTypesIndex sub-type(s).
• 8-bits with RasterDialogTifx8SubTypesIndex sub-type(s).
• 24-bits with RasterDialogTifx24SubTypesIndex sub-type(s).
49 WindowsCursor "Windows Cursor (*.cur)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
50 WindowsEnhancedMetafile "Windows Enhanced Metafile (*.emf)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
51 WindowsIcon "Windows Icon (*.ico)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
52 WindowsMetafile "Windows Metafile (*.wmf)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
53 WinFax "WinFax (*.wfx)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogWfxSubTypesIndex sub-type(s).
54 WirelessBitmap "Wireless Bitmap (*.wbmp)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
55 WordPerfectGraphic "WordPerfect Graphic (*.wpg)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
56 Xbm "Xbm (*.xbm)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
57 XiconisSmp "Xiconis Smp (*.smp)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogSmpSubTypesIndex sub-type(s).
58 Xpm "Xpm (*.xpm)" format that supports the following bits per pixel values:
• 8-bits with no sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with no sub-type(s).
• 32-bits with no sub-type(s).
59 Xwd "Xwd (*.xwd)" format that supports the following bits per pixel values:
• 1-bits with RasterDialogXwdSubTypesIndex sub-type(s).
• 4-bits with RasterDialogXwdSubTypesIndex sub-type(s).
• 8-bits with RasterDialogXwdSubTypesIndex sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with no sub-type(s).
• 32-bits with no sub-type(s).
60 Hdp "JPEG XR / MS HDPhoto (*.hdp)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 16-bits with • 24-bits with no sub-type(s).
• 32-bits with • 48-bits with no sub-type(s).
• 64-bits with no sub-type(s).
61 PngIco "Vista Png Icon (*.ico)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8-bits with no sub-type(s).
• 24-bits with no sub-type(s).
• 32-bits with no sub-type(s).
62 Xps "XPS Document (*.xps)" format that supports the following bits per pixel values:
• 1-bits with no sub-type(s).
• 4-bits with no sub-type(s).
• 8 -bits with RasterDialogXps8SubTypesIndex sub-type(s).
• 24-bits with RasterDialogXps24SubTypesIndex sub-type(s).
• 32-bits with no sub-type(s).
63 Mng "Multiple-image Network Graphics (*.mng)" format that supports the following bits per pixel values:
• 1 -bits with RasterDialogMng1SubTypesIndex sub-type(s).
• 2 -bits with RasterDialogMng2SubTypesIndex sub-type(s).
• 4 -bits with RasterDialogMng4SubTypesIndex sub-type(s).
• 8 -bits with RasterDialogMng8SubTypesIndex sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with RasterDialogMng24SubTypesIndex sub-type(s).
• 32-bits with no sub-type(s).
• 48-bits with no sub-type(s).
• 64-bits with no sub-type(s).
64 Ppt "PPT Document (*.ppt)" format (Microsoft PowerPoint 2003) that supports the following bits per pixel values:
• 1 -bits with no sub-type(s).
• 4 -bits with no sub-type(s).
• 8 -bits with no sub-type(s).
• 16-bits with no sub-type(s).
• 24-bits with no sub-type(s).
65 Jxr "JPEG Extended Range (*.jxr)" format that supports the following bits per pixel values:
• 1 bits with no sub-type(s).
• 8 bits with no sub-type(s).
• 16 bits with sub-type: RasterImageFormat.Jxr and RasterImageFormat.JxrGray.
• 24 bits with sub-type: RasterImageFormat.Jxr, RasterImageFormat.Jxr422 and RasterImageFormat.Jxr420.
• 32 bits with sub-type: RasterImageFormat.Jxr and RasterImageFormat.JxrGray.
• 48 bits with no sub-type(s).
• 64 bits with no sub-type(s).
66 Jls "JPEG LS (*.jls)" format that supports the following bits per pixel values:
• 8 with sub-type: Lossless and Near Lossless for RasterImageFormat.Jls
• 12 with sub-type: Lossless and Near Lossless for RasterImageFormat.Jls
• 16 with sub-type: Lossless and Near Lossless for RasterImageFormat.Jls
• 24 with sub-type: Lossless and Near Lossless for RasterImageFormat.Jls, RasterImageFormat.JlsLine and RasterImageFormat.JlsSample\
67 Ing "INGR (*.ing)" format that supports the following bits per pixel values:
• 1 with sub-type: CIT, CCITT G4 compression for RasterImageFormat.IngG4
• 1 with sub-type: RLE, RLE compression for RasterImageFormat.IngRle
• 8 with sub-type: CRL, RLE compression (color or gay) for RasterImageFormat.IngRle
• 8 with sub-type: T29, Adaptive RLE compression (color or gray) for RasterImageFormat.IngAdaptiveRle
• 8 with sub-type: COT, Uncompressed (color or gray) for RasterImageFormat.Ing
• 24 with sub-type: T27, Uncompressed (color or gray) for RasterImageFormat.IngAdaptiveRle
• 24 with sub-type: RGB, Uncompressed for RasterImageFormat.Ing\
68 BigTiff Big Tiff format.
69 Heic HEIF/HEIC formats.
70 Webp WebP file format.
71 IndexEnd End of the formats Index ID's.
Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.WinForms.CommonDialogs.File; 
 
 
public void RasterSaveDialogExample() 
{ 
   RasterCodecs rasterCodecs = new RasterCodecs(); 
 
   RasterSaveDialog saveDlg = new RasterSaveDialog(rasterCodecs); 
   RasterSaveDialogFileFormatsList saveDlgFormatList = new RasterSaveDialogFileFormatsList(RasterDialogFileFormatDataContent.User); 
 
   // Adding Cmp format 
   saveDlgFormatList.Add(RasterDialogFileTypesIndex.Lead, RasterDialogBitsPerPixelDataContent.Default); 
 
   // Adding Tiff format 
   saveDlgFormatList.Add(RasterDialogFileTypesIndex.Tiff, RasterDialogBitsPerPixelDataContent.User); 
   saveDlgFormatList[1].Name = "Custom Tiff"; 
 
   //Adding all default 12-bit subtypes 
   saveDlgFormatList[1].BitsPerPixelList.Add(RasterDialogFileTypesIndex.Tiff, 12, RasterDialogFileSubTypeDataContent.Default); 
 
   //Adding all default 24-bit and some subtypes 
   saveDlgFormatList[1].BitsPerPixelList.Add(RasterDialogFileTypesIndex.Tiff, 24, RasterDialogFileSubTypeDataContent.User); 
   saveDlgFormatList[1].BitsPerPixelList[1].SubFormatsList.Add(RasterDialogFileTypesIndex.Tiff, 24, (int)RasterDialogTiff24SubTypesIndex.UncompressedYCbCr); 
   saveDlgFormatList[1].BitsPerPixelList[1].SubFormatsList.Add(RasterDialogFileTypesIndex.Tiff, 24, (int)RasterDialogTiff24SubTypesIndex.PackbitsRgb); 
   saveDlgFormatList[1].BitsPerPixelList[1].SubFormatsList.Add(RasterDialogFileTypesIndex.Tiff, 24, (int)RasterDialogTiff24SubTypesIndex.PackbitsCmyk); 
 
   saveDlg.AutoProcess = false; 
   saveDlg.BitsPerPixel = 24; 
   saveDlg.DefaultExt = "cmp"; 
   saveDlg.EnableSizing = true; 
   saveDlg.FileFormatsList = saveDlgFormatList; 
   saveDlg.FileName = "Out_Image1.cmp"; 
   saveDlg.FileSubTypeIndex = (int)RasterDialogCmpSubTypesIndex.NonProgressive; 
   saveDlg.FileTypeIndex = RasterDialogFileTypesIndex.Lead; 
   saveDlg.InitialDirectory = LEAD_VARS.ImagesDir; 
   saveDlg.InitialView = FileDialogInitialView.List; 
   saveDlg.PageNumber = 1; 
   saveDlg.Passes = 1; 
   saveDlg.PromptOverwrite = true; 
   saveDlg.QualityFactor = 2; 
   saveDlg.ShowFileOptionsBasicJ2kOptions = false; 
   saveDlg.ShowFileOptionsJ2kOptions = false; 
   saveDlg.ShowFileOptionsMultipage = true; 
   saveDlg.ShowFileOptionsProgressive = true; 
   saveDlg.ShowFileOptionsQualityFactor = true; 
   saveDlg.ShowFileOptionsStamp = true; 
   saveDlg.ShowPdfProfiles = true; 
   saveDlg.ShowBitsPerPixel = true; 
   saveDlg.ShowFormatSubType = true; 
   saveDlg.ShowHelp = true; 
   saveDlg.ShowOptions = true; 
   saveDlg.ShowQualityFactor = true; 
   saveDlg.StampBitsPerPixel = 24; 
   saveDlg.StampHeight = 120; 
   saveDlg.StampWidth = 120; 
   saveDlg.Title = "Save Dialog"; 
   saveDlg.WithStamp = false; 
   saveDlg.Help += new EventHandler<RasterDialogHelpEventArgs>(saveDlg_Help); 
 
   // Replace "Cancel" string with "Cancel Save" 
   RasterSaveDialog.SetDialogString(new RasterDialogStrings("Cancel Save", RasterDialogStringsId.SaveCancel)); 
 
   if (DialogResult.OK == saveDlg.ShowDialog(null)) 
   { 
      Leadtools.RasterImage saveImage = rasterCodecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Image1.cmp")); 
 
      switch (saveDlg.Format) 
      { 
         case RasterImageFormat.Abc: 
            { 
               rasterCodecs.Options.Abc.Save.QualityFactor = saveDlg.AbcQualityFactor; 
               break; 
            } 
 
         case RasterImageFormat.Png: 
            { 
               rasterCodecs.Options.Png.Save.QualityFactor = saveDlg.QualityFactor; 
               break; 
            } 
 
         case RasterImageFormat.Cmp: 
            { 
               rasterCodecs.Options.Jpeg.Save.QualityFactor = saveDlg.QualityFactor; 
               rasterCodecs.Options.Jpeg.Save.CmpQualityFactorPredefined = saveDlg.CmpQualityFactor; 
               break; 
            } 
 
         default: 
            { 
               rasterCodecs.Options.Jpeg.Save.QualityFactor = saveDlg.QualityFactor; 
               break; 
            } 
      } 
 
      rasterCodecs.Options.Jpeg.Save.SaveWithStamp = saveDlg.WithStamp; 
      rasterCodecs.Options.Jpeg.Save.StampBitsPerPixel = saveDlg.StampBitsPerPixel; 
      rasterCodecs.Options.Jpeg.Save.StampWidth = saveDlg.StampWidth; 
      rasterCodecs.Options.Jpeg.Save.StampHeight = saveDlg.StampHeight; 
 
      rasterCodecs.Save(saveImage, 
                    saveDlg.FileName, 
                    saveDlg.Format, 
                    saveDlg.BitsPerPixel, 
                    saveImage.Page, 
                    saveImage.Page, 
                    saveDlg.PageNumber, 
                    saveDlg.MultiPage); 
 
      RasterDialogStrings okButtonString = RasterSaveDialog.GetDialogString(RasterDialogStringsId.SaveCancel); 
      MessageBox.Show(okButtonString.ToString()); 
   } 
} 
 
public void saveDlg_Help(object sender, RasterDialogHelpEventArgs e) 
{ 
   switch (e.Dialog) 
   { 
      case RasterDialogHelpName.Save: 
         { 
            MessageBox.Show("Save dialog Help"); 
            break; 
         } 
 
      case RasterDialogHelpName.J2kOptions: 
         { 
            MessageBox.Show("Jpeg 2000 Save Options dialog Help"); 
            break; 
         } 
 
      case RasterDialogHelpName.SaveOptions: 
         { 
            MessageBox.Show("Save Options dialog Help"); 
            break; 
         } 
   } 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.WinForms.CommonDialogs.File Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.