File tree Expand file tree Collapse file tree 4 files changed +82
-0
lines changed Expand file tree Collapse file tree 4 files changed +82
-0
lines changed Original file line number Diff line number Diff line change 57
57
<Compile Include =" Attachments\RetrieveAttachedFiles.cs" />
58
58
<Compile Include =" Loading-and-Saving\SaveToBinaryImageUsingFixedThreshold.cs" />
59
59
<Compile Include =" Loading-and-Saving\SaveToBinaryImageUsingOtsuMethod.cs" />
60
+ <Compile Include =" Loading-and-Saving\SaveToBmpImageUsingImageSaveOptions.cs" />
60
61
<Compile Include =" Loading-and-Saving\SaveToGrayscaleImage.cs" />
62
+ <Compile Include =" Loading-and-Saving\SaveToJpegImageUsingSaveFormat.cs" />
61
63
<Compile Include =" Text\HighlightAllRecentChanges.cs" />
62
64
<Compile Include =" Images\BuildDocAndInsertImageUsingImageStream.cs" />
63
65
<Compile Include =" Images\BuildDocAndInsertImage.cs" />
Original file line number Diff line number Diff line change
1
+ // -----------------------------------------------------------------------
2
+ // <copyright file="SaveToBmpImageUsingImageSaveOptions.cs" company="Aspose Pty Ltd">
3
+ // Copyright (c) 2002-2020 Aspose Pty Ltd. All Rights Reserved.
4
+ // </copyright>
5
+ // -----------------------------------------------------------------------
6
+
7
+ namespace Aspose . Note . Examples . CSharp . Loading_and_Saving
8
+ {
9
+ using System ;
10
+
11
+ using Aspose . Note . Saving ;
12
+
13
+ class SaveToBmpImageUsingImageSaveOptions
14
+ {
15
+ public static void Run ( )
16
+ {
17
+ // ExStart:SaveToBmpImageUsingImageSaveOptions
18
+ // ExFor:Document.Save(System.String, Aspose.Note.Saving.SaveOptions)
19
+ // ExFor:SaveFormat
20
+ // ExFor:ImageSaveOptions
21
+ // ExSummary:Shows how to save a document as image in Bmp format using ImageSaveOptions.
22
+
23
+ // The path to the documents directory.
24
+ string dataDir = RunExamples . GetDataDir_LoadingAndSaving ( ) ;
25
+
26
+ // Load the document into Aspose.Note.
27
+ Document oneFile = new Document ( dataDir + "Aspose.one" ) ;
28
+
29
+ dataDir = dataDir + "SaveToBmpImageUsingImageSaveOptions_out.bmp" ;
30
+
31
+ // Save the document.
32
+ oneFile . Save ( dataDir , new ImageSaveOptions ( SaveFormat . Bmp ) ) ;
33
+
34
+ // ExEnd:SaveToBmpImageUsingImageSaveOptions
35
+
36
+ Console . WriteLine ( "\n OneNote document converted successfully to image in Bmp format.\n File saved at " + dataDir ) ;
37
+ }
38
+ }
39
+ }
Original file line number Diff line number Diff line change
1
+ // -----------------------------------------------------------------------
2
+ // <copyright file="SaveToJpegImageUsingSaveFormat.cs" company="Aspose Pty Ltd">
3
+ // Copyright (c) 2002-2020 Aspose Pty Ltd. All Rights Reserved.
4
+ // </copyright>
5
+ // -----------------------------------------------------------------------
6
+
7
+ namespace Aspose . Note . Examples . CSharp . Loading_and_Saving
8
+ {
9
+ using System ;
10
+
11
+ using Aspose . Note . Saving ;
12
+
13
+ class SaveToJpegImageUsingSaveFormat
14
+ {
15
+ public static void Run ( )
16
+ {
17
+ // ExStart:SaveToJpegImageUsingSaveFormat
18
+ // ExFor:Document.Save(System.String, Aspose.Note.Saving.SaveOptions)
19
+ // ExFor:SaveFormat
20
+ // ExFor:ImageSaveOptions
21
+ // ExSummary:Shows how to save a document as image in Jpeg format using SaveFormat.
22
+
23
+ // The path to the documents directory.
24
+ string dataDir = RunExamples . GetDataDir_LoadingAndSaving ( ) ;
25
+
26
+ // Load the document into Aspose.Note.
27
+ Document oneFile = new Document ( dataDir + "Aspose.one" ) ;
28
+
29
+ dataDir = dataDir + "SaveToJpegImageUsingSaveFormat_out.jpg" ;
30
+
31
+ // Save the document.
32
+ oneFile . Save ( dataDir , SaveFormat . Jpeg ) ;
33
+
34
+ // ExEnd:SaveToJpegImageUsingSaveFormat
35
+
36
+ Console . WriteLine ( "\n OneNote document converted successfully to image in Jpeg format.\n File saved at " + dataDir ) ;
37
+ }
38
+ }
39
+ }
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ public static void Main()
67
67
//SaveToGrayscaleImage.Run();
68
68
//SaveToBinaryImageUsingFixedThreshold.Run();
69
69
//SaveToBinaryImageUsingOtsuMethod.Run();
70
+ //SaveToBmpImageUsingImageSaveOptions.Run();
71
+ //SaveToJpegImageUsingSaveFormat.Run();
70
72
//SaveToStream.Run();
71
73
//SaveWithDefaultSettings.Run();
72
74
//SpecifySaveOptions.Run();
You can’t perform that action at this time.
0 commit comments