-
Notifications
You must be signed in to change notification settings - Fork 19
Convert Image to Alpha Bitmap
With this tool one can convert different Image files to a Bitmap (.bmp or .png) which one can use in the Windows Ribbon. It supports an Encoder for the Bitmap V5 Header (.bmp). The Bitmap-V5 format is mostly a format which support transparency (Alpha channel) in the .bmp file. This transparency you can see in the Thumbnails of the Windows Explorer and in other Image programs (Paint, Paint.net, ...), because the Decoder of V5-Bitmaps is integrated in Windows (I have tested this feature in Windows 7 and Windows 10). These V5-Bitmaps you can also use in the Ribbon Images. In a .NET program (C#, VB) you get directly a Bitmap with PixelFormat.Format32bppArgb when you create a Bitmap with a V5-Bitmap file, because the Bitmap Decoder is integrated in GDI-Plus. You don't have to do extra stuff to convert a normal (Bitmap-V1) Bitmap to a PixelFormat with Alpha channel.
which one can convert. The result of Bitmap file is either a 32 Bit Bitmap-V5, Bitmap-V1 or a PNG file. The output folder should be different to the input folder in most cases.
You can select any Bitmap file (Bitmap with file extension .bmp, Portable Network Graphics .png, GIF-file .gif, TIFF .tiff, JPEG .jpg|.jpeg ) . This file will be converted to a 32 Bit Bitmap file with transparency (Alpha channel).
You can use any Icon file to get a Bitmap. But you can also use some Icons from the Windows System. The Icons from Windows System are, for example, in the Windows folder "Windows\SystemResource" with filenames Shell32.dll.mun, ImageRes.dll.mun. Copy these files to a folder you like and extract these files with the 7-Zip program. You will get different folders. One folder is for the integrated Icons. These Icon files you can convert by the tool.
Go to the Website Standard-Icons.com or vista-style-icons.com. Now you can select an icon theme. Go with the mouse over an icon, press the right mouse button and click in the upcoming dialog "Picture save as". You will get a .gif file. This .gif file you can convert to transparent bitmaps with sizes 16x16, 20x20, 24x24, 32x32, 40x40, 48x48 and 64x64. The size of the bitmap file you can see in the file name. Example: BitmapFile_32.bmp is the file with a size of 32x32.
You can select a .xaml file from the Visual Studio Image Library. The converted result are .bmp or .png files with sizes 16x16, 20x20, 24x24, 32x32, 40x40, 48x48 and 64x64. The size of the bitmap file you can see in the file name. Example: BitmapFile_32.bmp is the file with a size of 32x32.
You can also define your own Xaml files like the files in the Image Library or you can convert .ai or other vector Images to a .xaml file.
You can select an Image or Icon file. This will show you some informations about the Bitmap. The informations are the Size, PixelFormat, Stride, and for .bmp files the BitmapHeader type and Compression value.
-
Basics
- Introduction, Background on the windows ribbon
- Basic Ribbon Wrapper Basic .NET wrappers for windows ribbon.
- Quickstart Tutorial
- First WinForms Ribbon Application How to create an empty WinForms application with ribbon support.
-
Working with Ribbon Controls
- Application Menu with Buttons How to use the ribbon application menu.
- Application Menu with SplitButton and DropDownButton How to use the ribbon application menu with ribbon split button and ribbon dropdown button controls.
- Tabs, Groups and HelpButton How to use ribbon tabs, groups and the ribbon help button control.
- Spinner How to use the ribbon spinner control.
- ComboBox How to use the ribbon combo box control.
- DropDownGallery, SplitButtonGallery and InRibbonGallery How to use the ribbon drop down gallery, split button gallery and in ribbon gallery controls.
- CheckBox and ToggleButton How to use the ribbon check box and toggle button controls.
- DropDownColorPicker How to use the ribbon drop down color picker control.
- FontControl How to use the ribbon font control.
- ContextualTabs How to work with ribbon contextual tabs.
- ContextPopup How to work with ribbon context popup.
- RecentItems How to work with ribbon recent items control.
- QuickAccessToolbar How to work with the ribbon quick access toolbar.
- The Ribbon Class How to work with the ribbon class. Methods, Properties, Events
- EventLogger Since Windows 8: Logging ribbon events
- UICollectionChangedEvent How to work with the ChangedEvent in an IUICollection
-
Working with miscellany Ribbon features
- ApplicationModes How to work with ribbon application modes.
- SizeDefinition How to define custom size definitions for ribbon group elements.
- Localization How to localize a ribbon.
- Changing Ribbon Colors How to change the ribbon colors.
- Working with Images How to work with images in the ribbon.
- Use Ribbon as External DLL How to load ribbon resources from external DLLs.
- Wrapper class RibbonItems An auto generated wrapper class from the ribbon markup.
-
Designing, building, previewing Windows Ribbon with RibbonTools
- RibbonTools basics Settings, Command line, ...
- Create a new project Create a WordPad sample project
- Preview the Ribbon
- Specifying Ribbon Commands
- Designing Ribbon Views
- Convert Images to Alpha Bitmaps
-
Modeling Guidelines
-
How to ...