File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,9 @@ private IEnumerable<ImageResolutionEventArgs> CheckSlowPages(Book book)
7878 if ( image != null )
7979 {
8080 string width = image . Width . ToString ( ) , height = image . Height . ToString ( ) ;
81- string dpi = image . VerticalResolution == image . HorizontalResolution ? image . VerticalResolution . ToString ( ) : $ "{ image . VerticalResolution . ToString ( ) } V & { image . HorizontalResolution . ToString ( ) } H";
82- resolutions . Add ( new ImageResolutionEventArgs ( width , height , dpi ) ) ;
81+ resolutions . Add ( new ImageResolutionEventArgs ( width , height ) ) ;
8382 image . Dispose ( ) ;
84- SimpleLogger . Debug ( $ "Read page { page . ImageIndex + 1 } from image. { width } X { height } ( { dpi } dpi) ") ;
83+ SimpleLogger . Debug ( $ "Read page { page . ImageIndex + 1 } from image. { width } X { height } ") ;
8584 }
8685 else
8786 {
@@ -100,13 +99,10 @@ public class ImageResolutionEventArgs : EventArgs
10099 {
101100 public string Width { get ; }
102101 public string Height { get ; }
103- public string dpi { get ; }
104-
105- public ImageResolutionEventArgs ( string Width , string Height , string dpi = "" )
102+ public ImageResolutionEventArgs ( string Width , string Height )
106103 {
107104 this . Width = Width ;
108105 this . Height = Height ;
109- this . dpi = dpi ;
110106 }
111107 }
112108}
Original file line number Diff line number Diff line change @@ -10,6 +10,5 @@ public enum ResolutionEnum
1010 {
1111 Width ,
1212 Height ,
13- dpi
1413 }
1514}
You can’t perform that action at this time.
0 commit comments