Products Technologies Demo Docs Blog Support Company

Changing the Image Format Order in the 'insert Image Dialog'

The insert image dialog in TX Text Control .NET for Windows Forms reads available image formats from the tx11_ic.ini configuration file in the BIN folder. Rearranging the entries in this file changes the default format order, placing any preferred format at the top of the list.

Changing the Image Format Order in the 'insert Image Dialog'

I just got an interesting support question: "How can I change the order of the image formats in the dialog box that is opended by calling the ImageCollection.Add method?"

The dialog reads all available image formats from the tx11_ic.ini file, located in the BIN folder of TX Text Control .NET for Windows Forms's install directory.

Additionally, the order can be set as well. So, if you would like to have the image format PNG as default, it should be on top of the list, which should then look like this:

[Graphic Import Filters]
Portable Network Graphics(.PNG)=tx11_png.flt,png
Graphics Interchange Format(.GIF)=tx11.png.flt,gif
Tagged Image Format(.TIF)=tx11_tif.flt,tif
Windows Metafile(.WMF)=tx11_wmf.flt,wmf
JPEG File Interchange Format(.JPG, .JPEG)=tx11.png.flt,jpg
Windows Bitmap(.BMP)=tx11_bmp.flt,bmp

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

Image.NETSample

Inserting Images from Memory

TX Text Control .NET for Windows Forms supports loading images from files in various formats, but some workflows require inserting images that exist only in memory. This sample application…


Image.NETSample

Embedding Images in Various Formats

Documents containing BMP or WMF images grow in size when exported to Word or RTF formats because those formats use uncompressed data. TX Text Control .NET for Windows Forms reduces file sizes by…


Windows FormsWPF.NET

Create a Table of Contents in Windows Forms using C#

This article explains how to create a table of contents in Windows Forms using the ribbon or programmatically. Creating a table of contents is required to organize large documents.


ASP.NETWindows FormsWPF

Official TX Text Control .NET Sample Applications Are Now Hosted on GitHub

This article gives a quick overview of the new repositories, their structure and our plans for the future.


ASP.NETJavaScriptDocument Editor

Detect Toggle Button Changes Using a MutationObserver

This article shows how to detect changes of toggle buttons in the ribbon of the web editor using a MutationObserver. The state of a toggle button in the ribbon visualizes the state of a certain…

Share on this blog post on: