Is it possible to show TGA thumbnails in OpenFileDialog? When using the System.Windows.Controls.OpenFileDialog control to browse image folders Windows 7, it will show preview thumbnails icons for JPG, PNG, or BMP image files. Unfortunately, Windows does not show previews for TGA files. However, Windows does show TGA preview thumbnails in Windows Explorer. Is there an extension or setting that will show TGA thumbnails in OpenFileDialog?
OpenFileDialog shows thumbnails for JPG files:
OpenFileDialog does NOT show TGA thumbnails:
However, Explorer DOES show TGA thumbnails:
An artist at my company provided a solution. Windows 7 has no built-in support for TGA thumbnails, but there are 3rd party applications such as MysticThumbs that add support for TGA files. In fact, the only reason Windows Explorer showed TGA thumbs in my example was because I had MysticThumbs installed. However, the application's OpenFileDialog did not show thumbnails because it was a 32-bit application and I had installed the 64-bit version of MysticThumbs. I installed the 32-bit version of MysticThumbs in addition to the 64-bit version, and now I see TGA thumbnails in both Windows Explorer and my 32-bit application.
FreeImage.NET can also open TGA images.
Related
I am using microsoft's 'print to Pdf' option in the print dialog to print a WPF visual as PDF. It works fine if I open the pdf in a browser, but if I open the pdf in something like Adobe Illustrator it does not recognize the fonts, and it substitutes with a default. Is there anything I can do to work around this?
I'm developing a WinForm app which needs to set the icon for file types specified in Setup project.
My OS is Win7 x64. Visual Studio 2017 Community and .Net Framework 4.6 are used. Icon has transparent pixels and is 128x128.
The problem is, after installation, icons are shown above another icon:
I just want files to have the exact icon I set:
Inkscape has the same problem.
Edit. I've already tested the following workarounds:
Resize the icon to 256x256.
Delete IconCache.db from AppData\Local folder and restart explorer.exe, which is recommended for broken-icons situation (all or some of files and shortcuts have a general icon).
I'm working on an application for Pixelsense using Microsoft surface 2.0 , I wants to open PDF file in my application in scatterview control , so that i can zoom , rotate & move my PDF file . I have followed the process given http://hugeonion.com/2009/04/06/displaying-a-pdf-file-within-a-wpf-application/
In the link i'm able to open PDF file in scatterview but not able to rotate & zoom it
I would suggest conmverting your PDF file to an image or images, then using those. It may be that ScatterView doesnt have all the support for embeded activeX controls etc and has better support for images.
Processing PDF files can be done with GhostScript (open source) or commercial PDF components.
I'm working on a simple WPF-based screensaver and can't get the thumbnail preview to work.
When you open the display control panel and go to configure the screensaver, the selected screensaver is supposed to display a thumbnail preview within the dialog:
I've found several good examples online of how to do this, including:
Writing a screen saver in WPF
WPF Screensaver (Codeplex)
CC Hearts Screen Saver
Following these examples, I couldn't get anything to work - the preview thumbnail turns black, but nothing else appears. Downloading each of these (and a few others) and running them had the same result - a blank preview thumbnail. I've done this before on Windows 7 and it wasn't hard, so I was a bit frustrated.
Copying the binaries across to a Windows XP machine, I found that each of them showed a preview thumbnail successfully.
So, there's something that's changed between Windows 7 and Windows 8.
What do I need to do differently to enable my WPF screensaver to properly display a thumbnail preview on Windows 8?
I've found the most common problems with moving code from Win 8 to Xp is permission and dependencies. Check that the files are not needing some weird permissions (not sure what permission the preview runs with) and that all dependencies are honoured (also their permissions).
If I remember right, all windows screen savers are just renamed exe files with command line arguments. Maybe try rename it and run it directly?
Check what version of the framework you are using and try to use the client profile if possible
Also Try this small workaround if helps:
In Windows Explorer Go to > Options > Change folder and search
options then click on the View tab and uncheck the box that
says Always show icons, never thumbnails.
I hope it should work.
Suppose I have this:
<Window stuff Icon="Resources\myicon.ico">
If I run the program on Windows 7, it's fine. If I run it on Windows XP SP2, it crashes. Removing the Icon property, it works fine on Windows XP, but then it doesn't have my myicon on the Windows 7 taskbar or on the Window.
Also, setting the application icon on the VS project menu doesn't work for W7, but works for XP. In summary:
<Icon> = broken XP, ok W7
No <Icon> = ok XP, ugly W7
VS project icon option = doesn't work for W7, ok XP
For the record, I created icons for 16x16, 22x22, etc up till 256x256 for 32, 24 and 8 bits. I also used IcoFX auto option of creating the .ico image for Windows XP.
Is there a way around this? Or do I have to choose between an ugly Windows 7(and Vista?) App or no Windows XP app?
XP does not support 256x256 icons. Remove the 256 icon for XP.
It has nothing to do with the resolution, but with the format: Windows XP can't handle PNG compressed icons in an ICO file. Normally only the bigger reolutions are compressed, mostly 256x256.
I used http://iconverticons.com/ to create ICO files and they also compress the 128x128 images using PNG.
To solve this, open your ICO file in Visual Studio and delete all versions of the icon in PNG format. Alternatively you can convert the PNG icons to BMP format with icoFx. Just disable compression in the options dialog and save your icon to a new file.
You can download IcoFx latest free version here: http://www.chip.de/downloads/IcoFX-letzte-Freeware-Version_28266149.html