Skip to content

Commit

Permalink
Remove Example Console
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Nov 19, 2024
1 parent 625682a commit 2a1b12c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ricaun.Revit.UI.Example/Revit/AppTheme.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ public Result OnStartup(UIControlledApplication application)
{
var buttonTiff = ribbonPanel.CreatePushButton<CommandTheme>("Grey")
.SetLargeImage("Resources/Cube-Grey-Light.tiff");
if (buttonTiff.LargeImage is System.Windows.Media.Imaging.BitmapSource largeImage)
{
System.Console.WriteLine($"{largeImage.GetType().Name} | {largeImage.Width:0}x{largeImage.Height:0} ({largeImage.PixelWidth}x{largeImage.PixelHeight}) {largeImage.DpiX:0}:{largeImage.DpiY:0}");
}
if (buttonTiff.Image is System.Windows.Media.Imaging.BitmapSource smallImage)
{
System.Console.WriteLine($"{smallImage.GetType().Name} | {smallImage.Width:0}x{smallImage.Height:0} ({smallImage.PixelWidth}x{smallImage.PixelHeight}) {smallImage.DpiX:0}:{smallImage.DpiY:0}");
}
//if (buttonTiff.LargeImage is System.Windows.Media.Imaging.BitmapSource largeImage)
//{
// System.Console.WriteLine($"{largeImage.GetType().Name} | {largeImage.Width:0}x{largeImage.Height:0} ({largeImage.PixelWidth}x{largeImage.PixelHeight}) {largeImage.DpiX:0}:{largeImage.DpiY:0}");
//}
//if (buttonTiff.Image is System.Windows.Media.Imaging.BitmapSource smallImage)
//{
// System.Console.WriteLine($"{smallImage.GetType().Name} | {smallImage.Width:0}x{smallImage.Height:0} ({smallImage.PixelWidth}x{smallImage.PixelHeight}) {smallImage.DpiX:0}:{smallImage.DpiY:0}");
//}
}

ribbonPanel.RowStackedItems(
Expand Down

0 comments on commit 2a1b12c

Please sign in to comment.