CINXE.COM

BMP file format - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>BMP file format - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy", "wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"d1c0e486-9c2e-4a95-b48a-75016174620b","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"BMP_file_format","wgTitle":"BMP file format","wgCurRevisionId":1252365614,"wgRevisionId":1252365614,"wgArticleId":250336,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Webarchive template wayback links","Articles with short description","Short description matches Wikidata","Articles containing potentially dated statements from 2014","All articles containing potentially dated statements","Raster graphics file formats","Microsoft Windows multimedia technology"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"BMP_file_format","wgRelevantArticleId":250336,"wgIsProbablyEditable":true, "wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":50000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q192869","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics": true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","ext.math.styles":"ready","ext.imagemap.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","ext.imagemap","mediawiki.page.media","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher", "ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.cite.styles%7Cext.imagemap.styles%7Cext.math.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="BMP file format - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/BMP_file_format"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=BMP_file_format&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/BMP_file_format"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-BMP_file_format rootpage-BMP_file_format skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=BMP+file+format" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=BMP+file+format" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_en.wikipedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=BMP+file+format" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=BMP+file+format" title="You&#039;re encouraged to log in; however, it&#039;s not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Device-independent_bitmaps_and_the_BMP_file_format" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Device-independent_bitmaps_and_the_BMP_file_format"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Device-independent bitmaps and the BMP file format</span> </div> </a> <ul id="toc-Device-independent_bitmaps_and_the_BMP_file_format-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-File_structure" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#File_structure"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>File structure</span> </div> </a> <button aria-controls="toc-File_structure-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle File structure subsection</span> </button> <ul id="toc-File_structure-sublist" class="vector-toc-list"> <li id="toc-DIBs_in_memory" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#DIBs_in_memory"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>DIBs in memory</span> </div> </a> <ul id="toc-DIBs_in_memory-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Bitmap_file_header" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Bitmap_file_header"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Bitmap file header</span> </div> </a> <ul id="toc-Bitmap_file_header-sublist" class="vector-toc-list"> <li id="toc-DIB_header_(bitmap_information_header)" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#DIB_header_(bitmap_information_header)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2.1</span> <span>DIB header (bitmap information header)</span> </div> </a> <ul id="toc-DIB_header_(bitmap_information_header)-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Color_table" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Color_table"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Color table</span> </div> </a> <ul id="toc-Color_table-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Pixel_storage" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Pixel_storage"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Pixel storage</span> </div> </a> <ul id="toc-Pixel_storage-sublist" class="vector-toc-list"> <li id="toc-Pixel_array_(bitmap_data)" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Pixel_array_(bitmap_data)"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.1</span> <span>Pixel array (bitmap data)</span> </div> </a> <ul id="toc-Pixel_array_(bitmap_data)-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Compression" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Compression"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.2</span> <span>Compression</span> </div> </a> <ul id="toc-Compression-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Pixel_format" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#Pixel_format"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4.3</span> <span>Pixel format</span> </div> </a> <ul id="toc-Pixel_format-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-RGB_video_subtypes" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#RGB_video_subtypes"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.5</span> <span>RGB video subtypes</span> </div> </a> <ul id="toc-RGB_video_subtypes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Example_1" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Example_1"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.6</span> <span>Example 1</span> </div> </a> <ul id="toc-Example_1-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Example_2" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Example_2"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.7</span> <span>Example 2</span> </div> </a> <ul id="toc-Example_2-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Usage_of_BMP_format" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Usage_of_BMP_format"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Usage of BMP format</span> </div> </a> <ul id="toc-Usage_of_BMP_format-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Related_formats" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Related_formats"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Related formats</span> </div> </a> <ul id="toc-Related_formats-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-External_links" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#External_links"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>External links</span> </div> </a> <ul id="toc-External_links-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">BMP file format</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 38 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-38" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">38 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D8%A8%D9%8A_%D8%A5%D9%85_%D8%A8%D9%8A_(%D8%B5%D9%8A%D8%BA%D8%A9_%D9%85%D9%84%D9%81%D8%A7%D8%AA)" title="بي إم بي (صيغة ملفات) – Arabic" lang="ar" hreflang="ar" data-title="بي إم بي (صيغة ملفات)" data-language-autonym="العربية" data-language-local-name="Arabic" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-az mw-list-item"><a href="https://az.wikipedia.org/wiki/BMP_(format)" title="BMP (format) – Azerbaijani" lang="az" hreflang="az" data-title="BMP (format)" data-language-autonym="Azərbaycanca" data-language-local-name="Azerbaijani" class="interlanguage-link-target"><span>Azərbaycanca</span></a></li><li class="interlanguage-link interwiki-azb mw-list-item"><a href="https://azb.wikipedia.org/wiki/%D8%A8%DB%8C%E2%80%8C%D8%A7%D9%85%E2%80%8C%D9%BE%DB%8C_%D9%81%D8%A7%DB%8C%D9%84_%D9%81%D9%88%D8%B1%D9%85%D8%AA%DB%8C" title="بی‌ام‌پی فایل فورمتی – South Azerbaijani" lang="azb" hreflang="azb" data-title="بی‌ام‌پی فایل فورمتی" data-language-autonym="تۆرکجه" data-language-local-name="South Azerbaijani" class="interlanguage-link-target"><span>تۆرکجه</span></a></li><li class="interlanguage-link interwiki-be mw-list-item"><a href="https://be.wikipedia.org/wiki/BMP" title="BMP – Belarusian" lang="be" hreflang="be" data-title="BMP" data-language-autonym="Беларуская" data-language-local-name="Belarusian" class="interlanguage-link-target"><span>Беларуская</span></a></li><li class="interlanguage-link interwiki-bg mw-list-item"><a href="https://bg.wikipedia.org/wiki/BMP" title="BMP – Bulgarian" lang="bg" hreflang="bg" data-title="BMP" data-language-autonym="Български" data-language-local-name="Bulgarian" class="interlanguage-link-target"><span>Български</span></a></li><li class="interlanguage-link interwiki-ca mw-list-item"><a href="https://ca.wikipedia.org/wiki/Windows_Bitmap" title="Windows Bitmap – Catalan" lang="ca" hreflang="ca" data-title="Windows Bitmap" data-language-autonym="Català" data-language-local-name="Catalan" class="interlanguage-link-target"><span>Català</span></a></li><li class="interlanguage-link interwiki-cs mw-list-item"><a href="https://cs.wikipedia.org/wiki/BMP" title="BMP – Czech" lang="cs" hreflang="cs" data-title="BMP" data-language-autonym="Čeština" data-language-local-name="Czech" class="interlanguage-link-target"><span>Čeština</span></a></li><li class="interlanguage-link interwiki-da mw-list-item"><a href="https://da.wikipedia.org/wiki/BMP" title="BMP – Danish" lang="da" hreflang="da" data-title="BMP" data-language-autonym="Dansk" data-language-local-name="Danish" class="interlanguage-link-target"><span>Dansk</span></a></li><li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/Windows_Bitmap" title="Windows Bitmap – German" lang="de" hreflang="de" data-title="Windows Bitmap" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-es mw-list-item"><a href="https://es.wikipedia.org/wiki/Windows_bitmap" title="Windows bitmap – Spanish" lang="es" hreflang="es" data-title="Windows bitmap" data-language-autonym="Español" data-language-local-name="Spanish" class="interlanguage-link-target"><span>Español</span></a></li><li class="interlanguage-link interwiki-fr mw-list-item"><a href="https://fr.wikipedia.org/wiki/Windows_bitmap" title="Windows bitmap – French" lang="fr" hreflang="fr" data-title="Windows bitmap" data-language-autonym="Français" data-language-local-name="French" class="interlanguage-link-target"><span>Français</span></a></li><li class="interlanguage-link interwiki-gl mw-list-item"><a href="https://gl.wikipedia.org/wiki/BMP" title="BMP – Galician" lang="gl" hreflang="gl" data-title="BMP" data-language-autonym="Galego" data-language-local-name="Galician" class="interlanguage-link-target"><span>Galego</span></a></li><li class="interlanguage-link interwiki-ko mw-list-item"><a href="https://ko.wikipedia.org/wiki/BMP_%ED%8C%8C%EC%9D%BC_%ED%8F%AC%EB%A7%B7" title="BMP 파일 포맷 – Korean" lang="ko" hreflang="ko" data-title="BMP 파일 포맷" data-language-autonym="한국어" data-language-local-name="Korean" class="interlanguage-link-target"><span>한국어</span></a></li><li class="interlanguage-link interwiki-hy mw-list-item"><a href="https://hy.wikipedia.org/wiki/BMP" title="BMP – Armenian" lang="hy" hreflang="hy" data-title="BMP" data-language-autonym="Հայերեն" data-language-local-name="Armenian" class="interlanguage-link-target"><span>Հայերեն</span></a></li><li class="interlanguage-link interwiki-hr mw-list-item"><a href="https://hr.wikipedia.org/wiki/BMP" title="BMP – Croatian" lang="hr" hreflang="hr" data-title="BMP" data-language-autonym="Hrvatski" data-language-local-name="Croatian" class="interlanguage-link-target"><span>Hrvatski</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/Windows_bitmap" title="Windows bitmap – Italian" lang="it" hreflang="it" data-title="Windows bitmap" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-pam mw-list-item"><a href="https://pam.wikipedia.org/wiki/BMP" title="BMP – Pampanga" lang="pam" hreflang="pam" data-title="BMP" data-language-autonym="Kapampangan" data-language-local-name="Pampanga" class="interlanguage-link-target"><span>Kapampangan</span></a></li><li class="interlanguage-link interwiki-ka mw-list-item"><a href="https://ka.wikipedia.org/wiki/BMP" title="BMP – Georgian" lang="ka" hreflang="ka" data-title="BMP" data-language-autonym="ქართული" data-language-local-name="Georgian" class="interlanguage-link-target"><span>ქართული</span></a></li><li class="interlanguage-link interwiki-kk mw-list-item"><a href="https://kk.wikipedia.org/wiki/BMP" title="BMP – Kazakh" lang="kk" hreflang="kk" data-title="BMP" data-language-autonym="Қазақша" data-language-local-name="Kazakh" class="interlanguage-link-target"><span>Қазақша</span></a></li><li class="interlanguage-link interwiki-lt mw-list-item"><a href="https://lt.wikipedia.org/wiki/BMP_(formatas)" title="BMP (formatas) – Lithuanian" lang="lt" hreflang="lt" data-title="BMP (formatas)" data-language-autonym="Lietuvių" data-language-local-name="Lithuanian" class="interlanguage-link-target"><span>Lietuvių</span></a></li><li class="interlanguage-link interwiki-hu mw-list-item"><a href="https://hu.wikipedia.org/wiki/BMP" title="BMP – Hungarian" lang="hu" hreflang="hu" data-title="BMP" data-language-autonym="Magyar" data-language-local-name="Hungarian" class="interlanguage-link-target"><span>Magyar</span></a></li><li class="interlanguage-link interwiki-ml mw-list-item"><a href="https://ml.wikipedia.org/wiki/%E0%B4%AC%E0%B4%BF%E2%80%8C.%E0%B4%8E%E0%B4%82%E2%80%8C.%E0%B4%AA%E0%B4%BF._%E0%B4%AB%E0%B4%AF%E0%B5%BD_%E0%B4%AB%E0%B5%8B%E0%B5%BC%E0%B4%AE%E0%B4%BE%E0%B4%B1%E0%B5%8D%E0%B4%B1%E0%B5%8D" title="ബി‌.എം‌.പി. ഫയൽ ഫോർമാറ്റ് – Malayalam" lang="ml" hreflang="ml" data-title="ബി‌.എം‌.പി. ഫയൽ ഫോർമാറ്റ്" data-language-autonym="മലയാളം" data-language-local-name="Malayalam" class="interlanguage-link-target"><span>മലയാളം</span></a></li><li class="interlanguage-link interwiki-nl mw-list-item"><a href="https://nl.wikipedia.org/wiki/BMP_(bestandsindeling)" title="BMP (bestandsindeling) – Dutch" lang="nl" hreflang="nl" data-title="BMP (bestandsindeling)" data-language-autonym="Nederlands" data-language-local-name="Dutch" class="interlanguage-link-target"><span>Nederlands</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/Windows_bitmap" title="Windows bitmap – Japanese" lang="ja" hreflang="ja" data-title="Windows bitmap" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-no mw-list-item"><a href="https://no.wikipedia.org/wiki/Windows_Bitmap" title="Windows Bitmap – Norwegian Bokmål" lang="nb" hreflang="nb" data-title="Windows Bitmap" data-language-autonym="Norsk bokmål" data-language-local-name="Norwegian Bokmål" class="interlanguage-link-target"><span>Norsk bokmål</span></a></li><li class="interlanguage-link interwiki-pl mw-list-item"><a href="https://pl.wikipedia.org/wiki/Windows_Bitmap" title="Windows Bitmap – Polish" lang="pl" hreflang="pl" data-title="Windows Bitmap" data-language-autonym="Polski" data-language-local-name="Polish" class="interlanguage-link-target"><span>Polski</span></a></li><li class="interlanguage-link interwiki-pt mw-list-item"><a href="https://pt.wikipedia.org/wiki/Device_Independent_Bitmap" title="Device Independent Bitmap – Portuguese" lang="pt" hreflang="pt" data-title="Device Independent Bitmap" data-language-autonym="Português" data-language-local-name="Portuguese" class="interlanguage-link-target"><span>Português</span></a></li><li class="interlanguage-link interwiki-ro mw-list-item"><a href="https://ro.wikipedia.org/wiki/BMP_(format_fi%C8%99ier)" title="BMP (format fișier) – Romanian" lang="ro" hreflang="ro" data-title="BMP (format fișier)" data-language-autonym="Română" data-language-local-name="Romanian" class="interlanguage-link-target"><span>Română</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/BMP" title="BMP – Russian" lang="ru" hreflang="ru" data-title="BMP" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li><li class="interlanguage-link interwiki-sk mw-list-item"><a href="https://sk.wikipedia.org/wiki/BMP_(form%C3%A1t)" title="BMP (formát) – Slovak" lang="sk" hreflang="sk" data-title="BMP (formát)" data-language-autonym="Slovenčina" data-language-local-name="Slovak" class="interlanguage-link-target"><span>Slovenčina</span></a></li><li class="interlanguage-link interwiki-fi mw-list-item"><a href="https://fi.wikipedia.org/wiki/BMP_(tiedostomuoto)" title="BMP (tiedostomuoto) – Finnish" lang="fi" hreflang="fi" data-title="BMP (tiedostomuoto)" data-language-autonym="Suomi" data-language-local-name="Finnish" class="interlanguage-link-target"><span>Suomi</span></a></li><li class="interlanguage-link interwiki-sv mw-list-item"><a href="https://sv.wikipedia.org/wiki/Windows_Bitmap" title="Windows Bitmap – Swedish" lang="sv" hreflang="sv" data-title="Windows Bitmap" data-language-autonym="Svenska" data-language-local-name="Swedish" class="interlanguage-link-target"><span>Svenska</span></a></li><li class="interlanguage-link interwiki-tr mw-list-item"><a href="https://tr.wikipedia.org/wiki/BMP" title="BMP – Turkish" lang="tr" hreflang="tr" data-title="BMP" data-language-autonym="Türkçe" data-language-local-name="Turkish" class="interlanguage-link-target"><span>Türkçe</span></a></li><li class="interlanguage-link interwiki-uk mw-list-item"><a href="https://uk.wikipedia.org/wiki/BMP" title="BMP – Ukrainian" lang="uk" hreflang="uk" data-title="BMP" data-language-autonym="Українська" data-language-local-name="Ukrainian" class="interlanguage-link-target"><span>Українська</span></a></li><li class="interlanguage-link interwiki-vi mw-list-item"><a href="https://vi.wikipedia.org/wiki/BMP" title="BMP – Vietnamese" lang="vi" hreflang="vi" data-title="BMP" data-language-autonym="Tiếng Việt" data-language-local-name="Vietnamese" class="interlanguage-link-target"><span>Tiếng Việt</span></a></li><li class="interlanguage-link interwiki-wuu mw-list-item"><a href="https://wuu.wikipedia.org/wiki/BMP" title="BMP – Wu" lang="wuu" hreflang="wuu" data-title="BMP" data-language-autonym="吴语" data-language-local-name="Wu" class="interlanguage-link-target"><span>吴语</span></a></li><li class="interlanguage-link interwiki-yo mw-list-item"><a href="https://yo.wikipedia.org/wiki/BMP_file_format" title="BMP file format – Yoruba" lang="yo" hreflang="yo" data-title="BMP file format" data-language-autonym="Yorùbá" data-language-local-name="Yoruba" class="interlanguage-link-target"><span>Yorùbá</span></a></li><li class="interlanguage-link interwiki-zh mw-list-item"><a href="https://zh.wikipedia.org/wiki/BMP" title="BMP – Chinese" lang="zh" hreflang="zh" data-title="BMP" data-language-autonym="中文" data-language-local-name="Chinese" class="interlanguage-link-target"><span>中文</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q192869#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/BMP_file_format" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:BMP_file_format" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/BMP_file_format"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/BMP_file_format"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/BMP_file_format" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/BMP_file_format" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;oldid=1252365614" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=BMP_file_format&amp;id=1252365614&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBMP_file_format"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FBMP_file_format"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=BMP_file_format&amp;action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=BMP_file_format&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="wb-otherproject-link wb-otherproject-commons mw-list-item"><a href="https://commons.wikimedia.org/wiki/Category:BMP_file_format" hreflang="en"><span>Wikimedia Commons</span></a></li><li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q192869" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Windows Bitmap image file format family</div> <style data-mw-deduplicate="TemplateStyles:r1236090951">.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}</style><div role="note" class="hatnote navigation-not-searchable">This article is about the file format. For the data structure/type of image, see <a href="/wiki/Bitmap_graphics" class="mw-redirect" title="Bitmap graphics">Bitmap graphics</a>.</div><style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox"><caption class="infobox-title" style="padding-bottom:0.15em;">Windows Bitmap</caption><tbody><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;"><a href="/wiki/Filename_extension" title="Filename extension">Filename extension</a></th><td class="infobox-data" style="line-height:1.35em;"><style data-mw-deduplicate="TemplateStyles:r886049734">.mw-parser-output .monospaced{font-family:monospace,monospace}</style><div class="monospaced"> <code>.bmp</code>, <code>.dib</code></div></td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;"><a href="/wiki/Media_type" title="Media type">Internet media&#160;type</a></th><td class="infobox-data" style="line-height:1.35em;"><code>image/bmp</code><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup><br /><code>image/x-bmp</code></td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;"><a href="/wiki/Type_code" class="mw-redirect" title="Type code">Type code</a></th><td class="infobox-data" style="line-height:1.35em;"><code>'BMP '</code><br /><code>'BMPf'</code><br /><code>'BMPp'</code></td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;"><a href="/wiki/Uniform_Type_Identifier" title="Uniform Type Identifier">Uniform Type Identifier&#160;(UTI)</a></th><td class="infobox-data" style="line-height:1.35em;">com.microsoft.bmp</td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;">Developed&#160;by</th><td class="infobox-data" style="line-height:1.35em;"><a href="/wiki/Microsoft_Corporation" class="mw-redirect" title="Microsoft Corporation">Microsoft Corporation</a></td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;">Type of format</th><td class="infobox-data" style="line-height:1.35em;"><a href="/wiki/Raster_graphics" title="Raster graphics">Raster graphics</a></td></tr><tr><th scope="row" class="infobox-label" style="line-height:1.2em; padding-right:0.65em;"><span class="nowrap"><a href="/wiki/Open_file_format" title="Open file format">Open format</a>?</span></th><td class="infobox-data" style="line-height:1.35em;"><a href="/wiki/Microsoft_Open_Specification_Promise" title="Microsoft Open Specification Promise">OSP</a> for <a href="/wiki/Windows_Metafile" title="Windows Metafile">WMF</a></td></tr></tbody></table> <p>The <b>BMP file format</b>, or <b>bitmap</b>, is a <a href="/wiki/Raster_graphics" title="Raster graphics">raster graphics</a> <a href="/wiki/Image_file_format" title="Image file format">image file format</a> used to store <a href="/wiki/Bitmap" title="Bitmap">bitmap</a> <a href="/wiki/Digital_image" title="Digital image">digital images</a>, independently of the <a href="/wiki/Display_device" title="Display device">display device</a> (such as a <a href="/wiki/Graphics_adapter" class="mw-redirect" title="Graphics adapter">graphics adapter</a>), especially on <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Microsoft Windows</a><sup id="cite_ref-bmp_2-0" class="reference"><a href="#cite_note-bmp-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> and <a href="/wiki/OS/2" title="OS/2">OS/2</a><sup id="cite_ref-os2bmp_3-0" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> operating systems. </p><p>The BMP file format is capable of storing <a href="/wiki/2D_computer_graphics" title="2D computer graphics">two-dimensional</a> digital images in various <a href="/wiki/Color_depth" title="Color depth">color depths</a>, and optionally with <a href="/wiki/Data_compression" title="Data compression">data compression</a>, <a href="/wiki/Alpha_compositing" title="Alpha compositing">alpha channels</a>, and <a href="/wiki/Color_management" title="Color management">color profiles</a>. The <a href="/wiki/Windows_Metafile" title="Windows Metafile">Windows Metafile</a> (WMF) specification covers the BMP file format.<sup id="cite_ref-v11_4-0" class="reference"><a href="#cite_note-v11-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Device-independent_bitmaps_and_the_BMP_file_format">Device-independent bitmaps and the BMP file format</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=1" title="Edit section: Device-independent bitmaps and the BMP file format"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1062633282">@media all and (max-width:720px){.mw-parser-output .content .thumb>div:not(.thumbinner){display:flex;justify-content:center;flex-wrap:wrap;align-content:flex-start;flex-direction:column}}body.skin-vector .mw-parser-output div.thumb>div:not(.thumbinner){font-size:94%;text-align:center;overflow:hidden;min-width:100px}body.skin-minerva .mw-parser-output div.thumb>div:not(.thumbinner){margin:0 auto;max-width:100%!important}</style> <div class="thumb tright"> <div style="display:table;"> <span typeof="mw:File/Frameless"><a href="/wiki/File:BMPfileFormat.svg" class="mw-file-description" title="Diagram 1 – The structure of the bitmap image file"><img alt="Diagram 1 – The structure of the bitmap image file" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/75/BMPfileFormat.svg/320px-BMPfileFormat.svg.png" decoding="async" width="320" height="667" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/75/BMPfileFormat.svg/480px-BMPfileFormat.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/75/BMPfileFormat.svg/640px-BMPfileFormat.svg.png 2x" data-file-width="640" data-file-height="1333" /></a></span><div class="thumbcaption" style="display:table-caption;caption-side:bottom;box-sizing:border-box;"><a href="#File_structure">Diagram 1</a> – The structure of the bitmap image file </div> </div> </div> <p>Microsoft has defined a particular representation of color bitmaps of different color depths, as an aid to exchanging bitmaps between devices and applications with a variety of internal representations. They called these device-independent bitmaps or DIBs, and the file format for them is called DIB file format or BMP image file format. </p><p> According to Microsoft support:<sup id="cite_ref-DIBhelp_5-0" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> </p><blockquote><p>A device-independent bitmap (DIB) is a format used to define device-independent bitmaps in various color resolutions. The main purpose of DIBs is to allow bitmaps to be moved from one device to another (hence, the device-independent part of the name). A DIB is an external format, in contrast to a device-dependent bitmap, which appears in the system as a bitmap object (created by an application...). A DIB is normally transported in metafiles (usually using the StretchDIBits() function), BMP files, and the Clipboard (<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">CF_DIB</span> data format).</p></blockquote> <p>The following sections discuss the data stored in the BMP file or DIB in detail. This is the standard BMP file format.<sup id="cite_ref-DIBhelp_5-1" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> Some applications create bitmap image files which are not compliant with the Microsoft documentation. Also, not all fields are used; a value of 0 will be found in these unused fields. </p> <div class="mw-heading mw-heading2"><h2 id="File_structure">File structure</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=2" title="Edit section: File structure"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The bitmap image file consists of fixed-size structures (headers) as well as variable-sized structures appearing in a predetermined sequence. Many different versions of some of these structures can appear in the file, due to the long evolution of this file format. </p><p>Referring to the diagram 1, the bitmap file is composed of structures in the following order: </p> <table class="wikitable"> <tbody><tr> <th>Structure name </th> <th>Optional </th> <th>Size </th> <th>Purpose </th> <th>Comments </th></tr> <tr> <th>Bitmap file header </th> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>14 bytes </td> <td>To store general information about the bitmap image file </td> <td>Not needed after the file is loaded in memory </td></tr> <tr> <th>DIB header </th> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td>Fixed-size <br />(7 different versions exist) </td> <td>To store detailed information about the bitmap image and define the pixel format </td> <td>Immediately follows the Bitmap file header </td></tr> <tr> <th>Extra bit masks </th> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td>3 or 4 <a href="/wiki/DWORD" class="mw-redirect" title="DWORD">DWORDs</a><sup id="cite_ref-AlphaBitFields_6-0" class="reference"><a href="#cite_note-AlphaBitFields-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup><br />(12 or 16 bytes) </td> <td>To define the pixel format </td> <td>Present only in case the DIB header is the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> and the Compression Method member is set to either BI_BITFIELDS or BI_ALPHABITFIELDS </td></tr> <tr> <th>Color table </th> <td style="background: #DFD; color:black; vertical-align: middle; text-align: center;">Semi-optional </td> <td data-sort-value="" style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-na">Variable size </td> <td>To define colors used by the bitmap image data (Pixel array) </td> <td>Mandatory for <a href="/wiki/Color_depth" title="Color depth">color depths</a> ≤ 8 bits </td></tr> <tr> <th>Gap1 </th> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td data-sort-value="" style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-na">Variable size </td> <td>Structure alignment </td> <td>An artifact of the File offset to Pixel array in the Bitmap file header </td></tr> <tr> <th>Pixel array </th> <td style="background:#FFC7C7;color:black;vertical-align:middle;text-align:center;" class="table-no">No </td> <td data-sort-value="" style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-na">Variable size </td> <td>To define the actual values of the pixels </td> <td>The pixel format is defined by the DIB header or Extra bit masks. Each row in the Pixel array is padded to a multiple of 4 bytes in size </td></tr> <tr> <th>Gap2 </th> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td data-sort-value="" style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-na">Variable size </td> <td>Structure alignment </td> <td>An artifact of the ICC profile data offset field in the DIB header </td></tr> <tr> <th>ICC color profile </th> <td style="background:#9EFF9E;color:black;vertical-align:middle;text-align:center;" class="table-yes">Yes </td> <td data-sort-value="" style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-na">Variable size </td> <td>To define the color profile for color management </td> <td>Can also contain a path to an external file containing the color profile. When loaded in memory as "non-packed DIB", it is located between the color table and Gap1.<sup id="cite_ref-DIBHeaderTypes_7-0" class="reference"><a href="#cite_note-DIBHeaderTypes-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> </td></tr></tbody></table><div style="clear:left;" class=""></div> <div class="mw-heading mw-heading3"><h3 id="DIBs_in_memory">DIBs in memory</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=3" title="Edit section: DIBs in memory"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>A bitmap image file loaded into memory becomes a DIB data structure – an important component of the Windows GDI API. The in-memory DIB data structure is almost the same as the BMP file format, but it does not contain the 14-byte bitmap file header and begins with the DIB header. For DIBs loaded in memory, the color table can also consist of 16-bit entries that constitute indexes to the currently realized palette<sup id="cite_ref-BITMAPINFO_8-0" class="reference"><a href="#cite_note-BITMAPINFO-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> (an additional level of indirection), instead of explicit RGB color definitions. In all cases, the pixel array must begin at a memory address that is a multiple of 4 bytes. In non-packed DIBs loaded in memory, the optional color profile data should be located immediately after the color table and before the gap1 and pixel array<sup id="cite_ref-DIBHeaderTypes_7-1" class="reference"><a href="#cite_note-DIBHeaderTypes-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup> (unlike in diag. 1). </p><p>When the size of gap1 and gap2 is zero, the in-memory DIB data structure is customarily referred to as "packed DIB" and can be referred to by a single pointer pointing to the beginning of the DIB header. In all cases, the pixel array must begin at a memory address that is a multiple of 4 bytes. In some cases it may be necessary to adjust the number of entries in the color table in order to force the memory address of the pixel array to a multiple of 4 bytes.<sup id="cite_ref-BITMAPINFO_8-1" class="reference"><a href="#cite_note-BITMAPINFO-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> For "packed DIBs" loaded in memory, the optional color profile data should immediately follow the pixel array, as depicted in diag. 1 (with gap1=0 and gap2=0).<sup id="cite_ref-DIBHeaderTypes_7-2" class="reference"><a href="#cite_note-DIBHeaderTypes-7"><span class="cite-bracket">&#91;</span>7<span class="cite-bracket">&#93;</span></a></sup><br /> "Packed DIBs" are required by <a href="/wiki/Microsoft_Windows" title="Microsoft Windows">Windows</a> clipboard API functions as well as by some Windows patterned brush and resource functions.<sup id="cite_ref-PackedDIB_9-0" class="reference"><a href="#cite_note-PackedDIB-9"><span class="cite-bracket">&#91;</span>9<span class="cite-bracket">&#93;</span></a></sup> </p> <div style="clear:both;" class=""></div> <div class="mw-heading mw-heading3"><h3 id="Bitmap_file_header">Bitmap file header</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=4" title="Edit section: Bitmap file header"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This block of bytes is at the start of the file and is used to identify the file. A typical application reads this block first to ensure that the file is actually a BMP file and that it is not damaged. The first 2 bytes of the BMP file format are the character "B" then the character "M" in <a href="/wiki/ASCII" title="ASCII">ASCII</a> encoding. All of the integer values are stored in <a href="/wiki/Little-endian" class="mw-redirect" title="Little-endian">little-endian</a> format (i.e. least-significant byte first). </p> <table class="wikitable"> <tbody><tr> <th>Offset hex </th> <th>Offset dec </th> <th>Size </th> <th>Purpose </th></tr> <tr> <td>00</td> <td>0 </td> <td>2&#160;bytes </td> <td>The <a href="/wiki/File_format#Magic_number" title="File format">header field</a> used to identify the BMP and DIB file is <code>0x42 0x4D</code> in <a href="/wiki/Hexadecimal" title="Hexadecimal">hexadecimal</a>, same as <code>BM</code> in ASCII. The following entries are possible: <dl><dt>BM</dt> <dd>Windows 3.1x, 95, NT, ... etc.</dd> <dt>BA</dt> <dd>OS/2 struct bitmap array</dd> <dt>CI</dt> <dd>OS/2 struct color icon</dd> <dt>CP</dt> <dd>OS/2 const color pointer</dd> <dt>IC</dt> <dd>OS/2 struct icon</dd> <dt>PT</dt> <dd>OS/2 pointer</dd></dl> </td></tr> <tr> <td>02</td> <td>2 </td> <td>4&#160;bytes </td> <td>The size of the BMP file in bytes </td></tr> <tr> <td>06</td> <td>6 </td> <td>2&#160;bytes </td> <td>Reserved; actual value depends on the application that creates the image, if created manually can be 0 </td></tr> <tr> <td>08</td> <td>8 </td> <td>2&#160;bytes </td> <td>Reserved; actual value depends on the application that creates the image, if created manually can be 0 </td></tr> <tr> <td>0A</td> <td>10 </td> <td>4&#160;bytes </td> <td>The offset, i.e. starting address, of the byte where the bitmap image data (pixel array) can be found. </td></tr></tbody></table> <div class="mw-heading mw-heading4"><h4 id="DIB_header_(bitmap_information_header)"><span id="DIB_header_.28bitmap_information_header.29"></span>DIB header (bitmap information header)</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=5" title="Edit section: DIB header (bitmap information header)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>This block of bytes tells the application detailed information about the image, which will be used to display the image on the screen. The block also matches the header used internally by Windows and OS/2 and has several different variants. All of them contain a dword (32-bit) field, specifying their size, so that an application can easily determine which header is used in the image. The reason that there are different headers is that Microsoft extended the DIB format several times. The new extended headers can be used with some GDI functions instead of the older ones, providing more functionality. Since the GDI supports a function for loading bitmap files, typical Windows applications use that functionality. One consequence of this is that for such applications, the BMP formats that they support match the formats supported by the Windows version being run. See the table below for more information. </p> <table class="wikitable"> <caption>Windows and OS/2 bitmap headers </caption> <tbody><tr> <th>Size </th> <th>Header name </th> <th>OS support </th> <th>Features </th> <th>Written by </th></tr> <tr> <td align="right">12 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span><br /><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS21XBITMAPHEADER</span> </td> <td><a href="/wiki/Windows_2.0" title="Windows 2.0">Windows 2.0</a> or later<br /><a href="/wiki/OS/2" title="OS/2">OS/2</a> 1.x<sup id="cite_ref-os2bmp_3-1" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </td> <td> </td> <td> </td></tr> <tr> <td align="right">64 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span> </td> <td><a href="/wiki/OS/2" title="OS/2">OS/2</a> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span>2 </td> <td>Adds <a href="/wiki/Halftoning" class="mw-redirect" title="Halftoning">halftoning</a>. Adds <a href="/wiki/Run-length_encoding" title="Run-length encoding">RLE</a> and <a href="/wiki/Huffman_coding" title="Huffman coding">Huffman</a> 1D compression. </td> <td> </td></tr> <tr> <td align="right">16 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span> </td> <td>This variant of the previous header contains only the first 16 bytes and the remaining bytes are assumed to be zero values.<sup id="cite_ref-os2bmp_3-2" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> <p>An example of such a case is the graphic <a rel="nofollow" class="external text" href="http://entropymine.com/jason/bmpsuite/bmpsuite/q/pal8os2v2-16.bmp">pal8os2v2-16.bmp</a><sup id="cite_ref-pal8os2v2-16.bmp_10-0" class="reference"><a href="#cite_note-pal8os2v2-16.bmp-10"><span class="cite-bracket">&#91;</span>10<span class="cite-bracket">&#93;</span></a></sup> of the BMP Suite.<sup id="cite_ref-bmpsuite_11-0" class="reference"><a href="#cite_note-bmpsuite-11"><span class="cite-bracket">&#91;</span>11<span class="cite-bracket">&#93;</span></a></sup> </p> </td> <td> </td> <td> </td></tr> <tr> <td align="right">40 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> </td> <td><a href="/wiki/Windows_NT" title="Windows NT">Windows NT</a>, <a href="/wiki/Windows_3.1x" class="mw-redirect" title="Windows 3.1x">3.1x</a> or later<sup id="cite_ref-bmp_2-1" class="reference"><a href="#cite_note-bmp-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </td> <td>Extends bitmap width and height to 4 bytes. Adds 16 bpp and 32 bpp formats. Adds RLE compression. </td> <td> </td></tr> <tr> <td align="right">52 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV2INFOHEADER</span> </td> <td>Undocumented </td> <td>Adds RGB bit masks. </td> <td>Adobe Photoshop </td></tr> <tr> <td align="right">56 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV3INFOHEADER</span> </td> <td>Not officially documented, but this documentation was posted on Adobe's forums, by an employee of Adobe with a statement that the standard was at one point in the past included in official MS documentation<sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">&#91;</span>12<span class="cite-bracket">&#93;</span></a></sup> </td> <td>Adds <a href="/wiki/Alpha_channel" class="mw-redirect" title="Alpha channel">alpha channel</a> bit mask. </td> <td>Adobe Photoshop </td></tr> <tr> <td align="right">108 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4HEADER</span> </td> <td><a href="/wiki/Windows_NT_4.0" title="Windows NT 4.0">Windows NT 4.0</a>, <a href="/wiki/Windows_95" title="Windows 95">95</a> or later </td> <td>Adds color space type and <a href="/wiki/Gamma_correction" title="Gamma correction">gamma correction</a> </td> <td> </td></tr> <tr> <td align="right">124 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV5HEADER</span> </td> <td><a href="/wiki/Windows_2000" title="Windows 2000">Windows NT 5.0</a>, <a href="/wiki/Windows_98" title="Windows 98">98</a> or later </td> <td>Adds <a href="/wiki/ICC_profile" title="ICC profile">ICC color profiles</a> </td> <td>The GIMP </td></tr></tbody></table> <table class="wikitable"> <tbody><tr> <th>Offset (hex)</th> <th>Offset (dec) </th> <th>Size (bytes) </th> <th>OS/2 1.x <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span><sup id="cite_ref-os2bmp_3-3" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </th></tr> <tr> <td>0E</td> <td>14 </td> <td>4 </td> <td>The size of this header (12 bytes) </td></tr> <tr> <td>12</td> <td>18 </td> <td>2 </td> <td>The bitmap width in pixels (unsigned 16-bit) </td></tr> <tr> <td>14</td> <td>20 </td> <td>2 </td> <td>The bitmap height in pixels (unsigned 16-bit) </td></tr> <tr> <td>16</td> <td>22 </td> <td>2 </td> <td>The number of color planes, must be 1 </td></tr> <tr> <td>18</td> <td>24 </td> <td>2 </td> <td>The number of bits per pixel </td> </tr></tbody><caption align="bottom" style="caption-side: bottom"><style data-mw-deduplicate="TemplateStyles:r886047488">.mw-parser-output .nobold{font-weight:normal}</style><span class="nobold">OS/2 1.x bitmaps are uncompressed and cannot be 16 or 32 bpp.</span> </caption></table> <p>The Windows 2.x BITMAPCOREHEADER differs from the OS/2 1.x BITMAPCOREHEADER (shown in the table above) in the one detail that the image width and height fields are signed integers, not unsigned.<sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">&#91;</span>13<span class="cite-bracket">&#93;</span></a></sup> </p><p>Versions after <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> only add fields to the end of the header of the previous version. For example: <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV2INFOHEADER</span> adds fields to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span>, and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV3INFOHEADER</span> adds fields to <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV2INFOHEADER</span>. </p><p>An integrated alpha channel has been introduced with the undocumented <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV3INFOHEADER</span> and with the documented <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4HEADER</span> (since <a href="/wiki/Windows_95" title="Windows 95">Windows 95</a>) and is used within <a href="/wiki/Windows_XP" title="Windows XP">Windows XP</a> logon and theme system as well as Microsoft Office (since v2000); it is supported by some <a href="/wiki/Image_editing" title="Image editing">image editing</a> software, such as <a href="/wiki/Adobe_Photoshop" title="Adobe Photoshop">Adobe Photoshop</a> since version 7 and <a href="/wiki/Adobe_Flash" title="Adobe Flash">Adobe Flash</a> since version MX 2004 (then known as Macromedia Flash). It is also supported by <a href="/wiki/GIMP" title="GIMP">GIMP</a>, <a href="/wiki/Google_Chrome" title="Google Chrome">Google Chrome</a>, <a href="/wiki/Microsoft_PowerPoint" title="Microsoft PowerPoint">Microsoft PowerPoint</a> and <a href="/wiki/Microsoft_Word" title="Microsoft Word">Microsoft Word</a>. </p><p> For compatibility reasons, most applications use the older DIB headers for saving files. <b>With OS/2 no longer supported after Windows 2000, for now the common Windows format is the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> header.</b> See next table for its description. All values are stored as unsigned integers, unless explicitly noted.</p><div style="clear:both;" class=""></div> <table class="wikitable"> <tbody><tr> <th>Offset (hex)</th> <th>Offset (dec) </th> <th>Size (bytes) </th> <th>Windows <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span><sup id="cite_ref-bmp_2-2" class="reference"><a href="#cite_note-bmp-2"><span class="cite-bracket">&#91;</span>2<span class="cite-bracket">&#93;</span></a></sup> </th></tr> <tr> <td>0E</td> <td>14 </td> <td>4 </td> <td>the size of this header, in bytes (40) </td></tr> <tr> <td>12</td> <td>18 </td> <td>4 </td> <td>the bitmap width in pixels (signed integer) </td></tr> <tr> <td>16</td> <td>22 </td> <td>4 </td> <td>the bitmap height in pixels (signed integer) </td></tr> <tr> <td>1A</td> <td>26 </td> <td>2 </td> <td>the number of color planes (must be 1) </td></tr> <tr> <td>1C</td> <td>28 </td> <td>2 </td> <td>the number of bits per pixel, which is the color depth of the image. Typical values are 1, 4, 8, 16, 24 and 32. </td></tr> <tr> <td>1E</td> <td>30 </td> <td>4 </td> <td>the compression method being used. See the next table for a list of possible values </td></tr> <tr> <td>22</td> <td>34 </td> <td>4 </td> <td>the image size. This is the size of the raw bitmap data; a dummy 0 can be given for BI_RGB bitmaps. </td></tr> <tr> <td>26</td> <td>38 </td> <td>4 </td> <td>the horizontal resolution of the image. (pixel per metre, signed integer) </td></tr> <tr> <td>2A</td> <td>42 </td> <td>4 </td> <td>the vertical resolution of the image. (pixel per metre, signed integer) </td></tr> <tr> <td>2E</td> <td>46 </td> <td>4 </td> <td>the number of colors in the color palette, or 0 to default to 2<sup><i>n</i></sup> </td></tr> <tr> <td>32</td> <td>50 </td> <td>4 </td> <td>the number of important colors used, or 0 when every color is important; generally ignored </td></tr></tbody></table> <p>The compression method (offset 30) can be: </p> <table class="wikitable"> <tbody><tr> <th>Value </th> <th>Identified by </th> <th>Compression method </th> <th>Comments </th></tr> <tr> <td>0 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_RGB</span> </td> <td style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-cast">none </td> <td>Most common </td></tr> <tr> <td>1 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_RLE8</span> </td> <td><a href="/wiki/Run-length_encoding" title="Run-length encoding">RLE</a> 8-bit/pixel </td> <td>Can be used only with 8-bit/pixel bitmaps </td></tr> <tr> <td>2 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_RLE4</span> </td> <td>RLE 4-bit/pixel </td> <td>Can be used only with 4-bit/pixel bitmaps </td></tr> <tr> <td>3 </td> <td valign="top"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_BITFIELDS</span> </td> <td valign="bottom"><abbr title="Only OS/2 2.x or later"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span></abbr>: Huffman 1D </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV2INFOHEADER</span>: RGB bit field masks, <br /><abbr title="V3 or later"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV3INFOHEADER</span>+</abbr>: RGBA </td></tr> <tr> <td>4 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_JPEG</span> </td> <td><abbr title="Only OS/2 2.x or later"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span></abbr>: RLE-24 </td> <td><abbr title="Windows NT 4.0 &amp; 95 or later"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4INFOHEADER</span>+</abbr>: <a href="/wiki/JPEG" title="JPEG">JPEG</a> image for printing<sup id="cite_ref-onlyprint_14-0" class="reference"><a href="#cite_note-onlyprint-14"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>5 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_PNG</span> </td> <td> </td> <td><abbr title="Windows NT 4.0 &amp; 95 or later"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4INFOHEADER</span>+</abbr>: <a href="/wiki/Portable_Network_Graphics" class="mw-redirect" title="Portable Network Graphics">PNG</a> image for printing<sup id="cite_ref-onlyprint_14-1" class="reference"><a href="#cite_note-onlyprint-14"><span class="cite-bracket">&#91;</span>14<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>6 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_ALPHABITFIELDS</span> </td> <td>RGBA bit field masks </td> <td>only <a href="/wiki/Windows_CE" class="mw-redirect" title="Windows CE">Windows CE</a> 5.0 with .NET 4.0 or later </td></tr> <tr> <td>11 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_CMYK</span> </td> <td style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-cast">none </td> <td>only <a href="/wiki/Windows_Metafile" title="Windows Metafile">Windows Metafile</a> <a href="/wiki/CMYK_color_model" title="CMYK color model">CMYK</a><sup id="cite_ref-v11_4-1" class="reference"><a href="#cite_note-v11-4"><span class="cite-bracket">&#91;</span>4<span class="cite-bracket">&#93;</span></a></sup> </td></tr> <tr> <td>12 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_CMYKRLE8</span> </td> <td>RLE-8 </td> <td>only <a href="/wiki/Windows_Metafile" title="Windows Metafile">Windows Metafile</a> CMYK </td></tr> <tr> <td>13 </td> <td><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BI_CMYKRLE4</span> </td> <td>RLE-4 </td> <td>only <a href="/wiki/Windows_Metafile" title="Windows Metafile">Windows Metafile</a> CMYK </td></tr></tbody></table> <p>An OS/2 2.x <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span> (<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER2</span> in IBM's documentation) contains 24 additional bytes:<sup id="cite_ref-os2bmp_3-4" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </p> <table class="wikitable"> <tbody><tr> <th>Offset (hex)</th> <th>Offset (dec) </th> <th>Size (bytes) </th> <th>OS/2 <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">OS22XBITMAPHEADER</span> (<link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER2</span>)<sup id="cite_ref-os2bmp_3-5" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup> </th></tr> <tr> <td>36</td> <td>54 </td> <td>2 </td> <td>An enumerated value specifying the units for the horizontal and vertical resolutions (offsets 38 and 42). The only defined value is 0, meaning pixels per metre </td></tr> <tr> <td>38</td> <td>56 </td> <td>2 </td> <td>Padding. Ignored and should be zero </td></tr> <tr> <td>3A</td> <td>58 </td> <td>2 </td> <td>An enumerated value indicating the direction in which the bits fill the bitmap. The only defined value is 0, meaning the origin is the lower-left corner. Bits fill from left-to-right, then bottom-to-top. <p>Note that Windows bitmaps (which don't include this field) can also specify an upper-left origin (bits fill from left-to-right, then top-to-bottom) by using a negative value for the image height </p> </td></tr> <tr> <td>3C</td> <td>60 </td> <td>2 </td> <td>An enumerated value indicating a halftoning algorithm that should be used when rendering the image. </td></tr> <tr> <td>3E</td> <td>62 </td> <td>4 </td> <td>Halftoning parameter 1 (see below) </td></tr> <tr> <td>42</td> <td>66 </td> <td>4 </td> <td>Halftoning parameter 2 (see below) </td></tr> <tr> <td>46</td> <td>70 </td> <td>4 </td> <td>An enumerated value indicating the color encoding for each entry in the color table. The only defined value is 0, indicating RGB. </td></tr> <tr> <td>4A</td> <td>74 </td> <td>4 </td> <td>An application-defined identifier. Not used for image rendering </td></tr></tbody></table> <p>The halftoning algorithm (offset 60) can be: </p> <table class="wikitable"> <tbody><tr> <th>Value </th> <th>Halftoning algorithm </th> <th>Comments </th></tr> <tr> <td>0 </td> <td style="background: #EEE; color:black; vertical-align: middle; text-align: center;" class="table-cast">none </td> <td>Most common </td></tr> <tr> <td>1 </td> <td><a href="/wiki/Error_diffusion" title="Error diffusion">Error diffusion</a> </td> <td>Halftoning parameter 1 (offset 64) is the percentage of error damping. 100 indicates no damping. 0 indicates that errors are not diffused </td></tr> <tr> <td>2 </td> <td>PANDA: Processing Algorithm for Noncoded Document Acquisition </td> <td>Halftoning parameters 1 and 2 (offsets 64 and 68, respectively) represent the X and Y dimensions, in pixels, respectively, of the halftoning pattern used </td></tr> <tr> <td>3 </td> <td>Super-circle </td> <td>Halftoning parameters 1 and 2 (offsets 64 and 68, respectively) represent the X and Y dimensions, in pixels, respectively, of the halftoning pattern used </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Color_table">Color table</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=6" title="Edit section: Color table"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The color table (palette) occurs in the BMP image file directly after the BMP file header, the DIB header, and after the optional three or four bitmasks if the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> header with BI_BITFIELDS (12 bytes) or BI_ALPHABITFIELDS (16 bytes) option is used. Therefore, its offset is the size of the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPFILEHEADER</span> plus the size of the DIB header (plus optional 12-16 bytes for the three or four bit masks).<br /> <small><i>Note: On <a href="/wiki/Windows_CE" class="mw-redirect" title="Windows CE">Windows CE</a> the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> header can be used with the BI_ALPHABITFIELDS<sup id="cite_ref-AlphaBitFields_6-1" class="reference"><a href="#cite_note-AlphaBitFields-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> option in the biCompression member.</i></small> </p><p>The number of entries in the palette is either 2<sup><i>n</i></sup> (where n is the number of bits per pixel) or a smaller number specified in the header (in the OS/2 <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span> header format, only the full-size palette is supported).<sup id="cite_ref-os2bmp_3-6" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-DIBhelp_5-2" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> In most cases, each entry in the color table occupies 4 bytes, in the order blue, green, red, 0x00 (see below for exceptions). This is indexed in the <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> in the structure member biBitCount. </p><p>The color table is a block of bytes (a table) listing the colors used by the image. Each pixel in an indexed color image is described by a number of bits (1, 4, or 8) which is an index of a single color described by this table. The purpose of the color palette in indexed color bitmaps is to inform the application about the actual color that each of these index values corresponds to. The purpose of the color table in non-indexed (non-palettized) bitmaps is to list the colors used by the bitmap for the purposes of optimization on devices with limited color display capability and to facilitate future conversion to different pixel formats and palettization. </p><p>The colors in the color table are usually specified in the 4-byte per entry <a href="/wiki/RGBA" class="mw-redirect" title="RGBA">ARGB32</a> format. The color table used with the OS/2 <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span> uses the 3-byte per entry <a href="/wiki/RGB" class="mw-redirect" title="RGB">RGB24</a> format.<sup id="cite_ref-os2bmp_3-7" class="reference"><a href="#cite_note-os2bmp-3"><span class="cite-bracket">&#91;</span>3<span class="cite-bracket">&#93;</span></a></sup><sup id="cite_ref-DIBhelp_5-3" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> For DIBs loaded in memory, the color table can optionally consist of 2-byte entries – these entries constitute indexes to the currently realized palette<sup id="cite_ref-BITMAPINFO_8-2" class="reference"><a href="#cite_note-BITMAPINFO-8"><span class="cite-bracket">&#91;</span>8<span class="cite-bracket">&#93;</span></a></sup> instead of explicit RGB color definitions. </p><p>Microsoft does not disallow the presence of a valid alpha channel bit mask<sup id="cite_ref-15" class="reference"><a href="#cite_note-15"><span class="cite-bracket">&#91;</span>15<span class="cite-bracket">&#93;</span></a></sup> in <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4HEADER</span> and <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV5HEADER</span> for 1bpp, 4bpp and 8bpp indexed color images, which indicates that the color table entries can also specify an alpha component using the <a href="/wiki/RGBAX" class="mw-redirect" title="RGBAX">8.8.8.[0-8].[0-8]</a> format via the RGBQUAD.rgbReserved<sup id="cite_ref-16" class="reference"><a href="#cite_note-16"><span class="cite-bracket">&#91;</span>16<span class="cite-bracket">&#93;</span></a></sup> member. However, some versions of Microsoft's documentation disallow this feature by stating that the RGBQUAD.rgbReserved member "must be zero". </p><p>As mentioned above, the color table is normally not used when the pixels are in the 16-bit per pixel (16bpp) format (and higher); there are normally no color table entries in those bitmap image files. However, the Microsoft documentation (on the MSDN web site as of Nov. 16, 2010<sup id="cite_ref-17" class="reference"><a href="#cite_note-17"><span class="cite-bracket">&#91;</span>17<span class="cite-bracket">&#93;</span></a></sup>) specifies that for 16bpp (and higher), the color table can be present to store a list of colors intended for optimization on devices with limited color display capability, while it also specifies, that in such cases, no indexed palette entries are present in this Color Table. This may seem like a contradiction if no distinction is made between the mandatory palette entries and the optional color list. </p> <div class="mw-heading mw-heading3"><h3 id="Pixel_storage">Pixel storage</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=7" title="Edit section: Pixel storage"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The bits representing the bitmap pixels are <a href="/wiki/Packed" class="mw-redirect" title="Packed">packed</a> in rows (also known as strides or scan lines). The size of each row is rounded up to a multiple of 4 bytes (a 32-bit <a href="/wiki/DWORD" class="mw-redirect" title="DWORD">DWORD</a>) by padding.<sup id="cite_ref-Image_Stride_18-0" class="reference"><a href="#cite_note-Image_Stride-18"><span class="cite-bracket">&#91;</span>18<span class="cite-bracket">&#93;</span></a></sup> </p><p>For images with height above 1, multiple padded rows are stored consecutively, forming a Pixel Array. </p><p>The total number of bytes necessary to store one row of pixels can be calculated as: <span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{RowSize}}=\left\lceil {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}}{32}}\right\rceil \cdot 4=\left\lfloor {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}+31}{32}}\right\rfloor \cdot 4,}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>RowSize</mtext> </mrow> <mo>=</mo> <mrow> <mo>&#x2308;</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>BitsPerPixel</mtext> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mtext>ImageWidth</mtext> </mrow> </mrow> <mn>32</mn> </mfrac> </mrow> <mo>&#x2309;</mo> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mn>4</mn> <mo>=</mo> <mrow> <mo>&#x230A;</mo> <mrow class="MJX-TeXAtom-ORD"> <mfrac> <mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>BitsPerPixel</mtext> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mtext>ImageWidth</mtext> </mrow> <mo>+</mo> <mn>31</mn> </mrow> <mn>32</mn> </mfrac> </mrow> <mo>&#x230B;</mo> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mn>4</mn> <mo>,</mo> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{RowSize}}=\left\lceil {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}}{32}}\right\rceil \cdot 4=\left\lfloor {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}+31}{32}}\right\rfloor \cdot 4,}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/ca716026b558a35c7ea0bf634bd7422054a0ea0e" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -2.505ex; width:87.568ex; height:6.176ex;" alt="{\displaystyle {\text{RowSize}}=\left\lceil {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}}{32}}\right\rceil \cdot 4=\left\lfloor {\frac {{\text{BitsPerPixel}}\cdot {\text{ImageWidth}}+31}{32}}\right\rfloor \cdot 4,}"></span> </p> <style data-mw-deduplicate="TemplateStyles:r996643573">.mw-parser-output .block-indent{padding-left:3em;padding-right:0;overflow:hidden}</style><div class="block-indent" style="padding-left: 1.5em;"><i>ImageWidth</i> is expressed in pixels. The equation above uses the <a href="/wiki/Floor_and_ceiling_functions" title="Floor and ceiling functions">floor and ceiling functions</a>.</div> <p>The total number of bytes necessary to store an array of pixels in an <var>n</var> bits per pixel (bpp) image, with <a href="/wiki/Power_of_two" title="Power of two">2<sup><var>n</var></sup></a> colors, can be calculated by accounting for the effect of rounding up the size of each row to a multiple of 4 bytes, as follows: </p><p><span class="mwe-math-element"><span class="mwe-math-mathml-display mwe-math-mathml-a11y" style="display: none;"><math display="block" xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle {\text{PixelArraySize}}={\text{RowSize}}\cdot |{\text{ImageHeight}}|}"> <semantics> <mrow class="MJX-TeXAtom-ORD"> <mstyle displaystyle="true" scriptlevel="0"> <mrow class="MJX-TeXAtom-ORD"> <mtext>PixelArraySize</mtext> </mrow> <mo>=</mo> <mrow class="MJX-TeXAtom-ORD"> <mtext>RowSize</mtext> </mrow> <mo>&#x22C5;<!-- ⋅ --></mo> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mtext>ImageHeight</mtext> </mrow> <mrow class="MJX-TeXAtom-ORD"> <mo stretchy="false">|</mo> </mrow> </mstyle> </mrow> <annotation encoding="application/x-tex">{\displaystyle {\text{PixelArraySize}}={\text{RowSize}}\cdot |{\text{ImageHeight}}|}</annotation> </semantics> </math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/b90e17f5372ece9904e21c7c30e9e902fa544b53" class="mwe-math-fallback-image-display mw-invert skin-invert" aria-hidden="true" style="vertical-align: -0.838ex; width:42.638ex; height:2.843ex;" alt="{\displaystyle {\text{PixelArraySize}}={\text{RowSize}}\cdot |{\text{ImageHeight}}|}"></span> </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r996643573"><div class="block-indent" style="padding-left: 1.5em;"><i>ImageHeight</i> is expressed in pixels. The absolute value is necessary because <i>ImageHeight</i> is expressed as a negative number for top-down images.</div> <div class="mw-heading mw-heading4"><h4 id="Pixel_array_(bitmap_data)"><span id="Pixel_array_.28bitmap_data.29"></span>Pixel array (bitmap data)</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=8" title="Edit section: Pixel array (bitmap data)"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The pixel array is a block of 32-bit DWORDs, that describes the image pixel by pixel. Usually pixels are stored "bottom-up", starting in the lower left corner, going from left to right, and then row by row from the bottom to the top of the image.<sup id="cite_ref-DIBhelp_5-4" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> Unless <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span> is used, uncompressed Windows bitmaps also can be stored from the top to bottom, when the Image Height value is negative. </p><p>In the original OS/2 DIB, the only four legal values of color depth were 1, 4, 8, and 24 bits per pixel (bpp).<sup id="cite_ref-DIBhelp_5-5" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> Contemporary DIB Headers allow pixel formats with 1, 2, 4, 8, 16, 24 and 32 bits per pixel (bpp).<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">&#91;</span>19<span class="cite-bracket">&#93;</span></a></sup> <a href="/wiki/Graphics_Device_Interface" title="Graphics Device Interface">GDI+</a> also permits 64 bits per pixel.<sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">&#91;</span>20<span class="cite-bracket">&#93;</span></a></sup> </p><p>Padding bytes (not necessarily 0) must be appended to the end of the rows in order to bring up the length of the rows to a multiple of four bytes. When the pixel array is loaded into memory, each row must begin at a memory address that is a multiple of 4. This address/offset restriction is mandatory only for Pixel Arrays loaded in memory. For file storage purposes, only the size of each row must be a multiple of 4 bytes while the file offset can be arbitrary.<sup id="cite_ref-DIBhelp_5-6" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> A 24-bit bitmap with Width=1, would have 3 bytes of data per row (blue, green, red) and 1 byte of padding, while Width=2 would have 6 bytes of data and 2 bytes of padding, Width=3 would have 9 bytes of data and 3 bytes of padding, and Width=4 would have 12 bytes of data and no padding. </p> <div class="mw-heading mw-heading4"><h4 id="Compression">Compression</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=9" title="Edit section: Compression"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a href="/wiki/Palette_(computing)" title="Palette (computing)">Indexed</a> color images may be compressed with 4-bit or 8-bit <a href="/wiki/Run-length_encoding" title="Run-length encoding">RLE</a> or <a href="/wiki/Huffman_coding" title="Huffman coding">Huffman</a> 1D algorithm.</li> <li><a href="/wiki/OS/2" title="OS/2">OS/2</a> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPCOREHEADER</span>2 <a href="/wiki/Color_depth" title="Color depth">24bpp</a> images may be compressed with the 24-bit RLE algorithm.</li> <li>The <a href="/wiki/Color_depth" title="Color depth">16bpp</a> and <a href="/wiki/Color_depth" title="Color depth">32bpp</a> images are <b>always stored uncompressed.</b></li> <li>Note that images in all color depths can be stored without compression if so desired.</li></ul> <div class="mw-heading mw-heading4"><h4 id="Pixel_format">Pixel format</h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=10" title="Edit section: Pixel format"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>The 1-bit per pixel (1bpp) format supports 2 distinct colors, (for example: black and white). The pixel values are stored in each bit, with the first (left-most) pixel in the most-significant bit of the first byte.<sup id="cite_ref-DIBhelp_5-7" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> Each bit is an index into a table of 2 colors. An unset bit will refer to the first color table entry, and a set bit will refer to the last (second) color table entry.</li> <li>The 2-bit per pixel (2bpp) format supports 4 distinct colors and stores 4 pixels per 1 byte, the left-most pixel being in the two most significant bits (<a href="/wiki/Windows_CE" class="mw-redirect" title="Windows CE">Windows CE</a> only:<sup id="cite_ref-PSformats_21-0" class="reference"><a href="#cite_note-PSformats-21"><span class="cite-bracket">&#91;</span>21<span class="cite-bracket">&#93;</span></a></sup>). Each pixel value is a 2-bit index into a table of up to 4 colors.</li> <li>The 4-bit per pixel (4bpp) format supports 16 distinct colors and stores 2 pixels per 1 byte, the left-most pixel being in the more significant <a href="/wiki/Nibble" title="Nibble">nibble</a>.<sup id="cite_ref-DIBhelp_5-8" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup> Each pixel value is a 4-bit index into a table of up to 16 colors.</li> <li>The 8-bit per pixel (8bpp) format supports 256 distinct colors and stores 1 pixel per 1 byte. Each byte is an index into a table of up to 256 colors.</li> <li>The 16-bit per pixel (16bpp) format supports 65536 distinct colors and stores 1 pixel per 2-byte WORD. Each WORD can define the alpha, red, green and blue <a href="/wiki/Sample_(graphics)" title="Sample (graphics)">samples</a> of the pixel.</li> <li>The 24-bit per pixel (24bpp) format supports 16,777,216 distinct colors and stores 1 pixel value per 3 bytes. Each pixel value defines the red, green and blue samples of the pixel (8.8.8.0.0 in RGBAX notation). Specifically, in the order: blue, green and red (8 bits per each sample).<sup id="cite_ref-DIBhelp_5-9" class="reference"><a href="#cite_note-DIBhelp-5"><span class="cite-bracket">&#91;</span>5<span class="cite-bracket">&#93;</span></a></sup></li> <li>The 32-bit per pixel (32bpp) format supports 4,294,967,296 distinct colors and stores 1 pixel per 4-byte DWORD. Each DWORD can define the alpha, red, green and blue samples of the pixel.</li></ul> <p>In order to resolve the ambiguity of which bits define which samples, the DIB headers provide certain defaults as well as specific BITFIELDS, which are bit masks that define the membership of particular group of bits in a pixel to a particular <a href="/wiki/Channel_(digital_image)" title="Channel (digital image)">channel</a>. The following diagram defines this mechanism: </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1062633282"> <div class="center"> <div class="thumb tnone"> <div style="display:table;width:753px;"> <span typeof="mw:File/Frameless"><a href="/wiki/File:BitfieldsSLN.svg" class="mw-file-description" title="Diag. 2 – The BITFIELDS mechanism for a 32-bit pixel depicted in RGBAX sample length notation"><img alt="Diag. 2 – The BITFIELDS mechanism for a 32-bit pixel depicted in RGBAX sample length notation" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/48/BitfieldsSLN.svg/753px-BitfieldsSLN.svg.png" decoding="async" width="753" height="207" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/48/BitfieldsSLN.svg/1130px-BitfieldsSLN.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/48/BitfieldsSLN.svg/1506px-BitfieldsSLN.svg.png 2x" data-file-width="512" data-file-height="141" /></a></span><div class="thumbcaption" style="display:table-caption;caption-side:bottom;box-sizing:border-box;">Diag. 2 – The BITFIELDS mechanism for a 32-bit pixel depicted in RGBAX sample length notation </div> </div> </div></div> <p>The sample fields defined by the BITFIELDS bit masks have to be contiguous and non-overlapping, but the order of the sample fields is arbitrary. The most ubiquitous field order is: Alpha, Blue, Green, Red (MSB to LSB). The red, green and blue bit masks are valid only when the Compression member of the DIB header is set to BI_BITFIELDS. The alpha bit mask is valid whenever it is present in the DIB header or when the Compression member of the DIB header is set to BI_ALPHABITFIELDS<sup id="cite_ref-AlphaBitFields_6-2" class="reference"><a href="#cite_note-AlphaBitFields-6"><span class="cite-bracket">&#91;</span>6<span class="cite-bracket">&#93;</span></a></sup> (<a href="/wiki/Windows_CE" class="mw-redirect" title="Windows CE">Windows CE</a> only). </p> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1062633282"> <div class="center"> <div class="thumb tnone"> <div style="display:table;width:448px;"> <span typeof="mw:File/Frameless"><a href="/wiki/File:SLNotation44440.svg" class="mw-file-description" title="Diag. 3 – The pixel format with an alpha channel for a 16-bit pixel (in RGBAX sample Length notation) actually generated by Adobe Photoshop[22]"><img alt="Diag. 3 – The pixel format with an alpha channel for a 16-bit pixel (in RGBAX sample Length notation) actually generated by Adobe Photoshop[22]" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/SLNotation44440.svg/448px-SLNotation44440.svg.png" decoding="async" width="448" height="110" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/cf/SLNotation44440.svg/672px-SLNotation44440.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/cf/SLNotation44440.svg/896px-SLNotation44440.svg.png 2x" data-file-width="512" data-file-height="126" /></a></span><div class="thumbcaption" style="display:table-caption;caption-side:bottom;box-sizing:border-box;">Diag. 3 – The pixel format with an alpha channel for a 16-bit pixel (in RGBAX sample Length notation) actually generated by Adobe Photoshop<sup id="cite_ref-PSformats2_22-0" class="reference"><a href="#cite_note-PSformats2-22"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup> </div> </div> </div></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1062633282"> <div class="center"> <div class="thumb tnone"> <div style="display:table;width:700px;"> <span typeof="mw:File/Frameless"><a href="/wiki/File:AllBMPformats.png" class="mw-file-description" title="All of the possible pixel formats in a DIB"><img alt="All of the possible pixel formats in a DIB" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/da/AllBMPformats.png/700px-AllBMPformats.png" decoding="async" width="700" height="158" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/da/AllBMPformats.png/1050px-AllBMPformats.png 1.5x, //upload.wikimedia.org/wikipedia/commons/d/da/AllBMPformats.png 2x" data-file-width="1103" data-file-height="249" /></a></span><div class="thumbcaption" style="display:table-caption;caption-side:bottom;box-sizing:border-box;">All of the possible pixel formats in a DIB </div> </div> </div></div> <div class="mw-heading mw-heading3"><h3 id="RGB_video_subtypes">RGB video subtypes</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=11" title="Edit section: RGB video subtypes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The BITFIELD mechanism described above allows for the definition of tens of thousands of different pixel formats, however only several of them are used in practice,<sup id="cite_ref-PSformats2_22-1" class="reference"><a href="#cite_note-PSformats2-22"><span class="cite-bracket">&#91;</span>22<span class="cite-bracket">&#93;</span></a></sup> all palettized formats RGB8, RGB4, and RGB1 (marked in yellow in the table above, defined in <code>dshow.h</code>.MEDIASUBTYPE names): </p> <table class="wikitable" style="float:left"> <caption>Uncompressed RGB Video Subtypes<sup id="cite_ref-dshow_23-0" class="reference"><a href="#cite_note-dshow-23"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> </caption> <tbody><tr> <th>R.G.B.A.X </th> <th>RGB subtype </th> <th>R.G.B.A.X </th> <th>ARGB subtype </th></tr> <tr> <td>8.8.8.0.8 </td> <td>RGB32 </td> <td>8.8.8.8.0 </td> <td>ARGB32 </td></tr> <tr> <td> </td> <td> </td> <td>10.10.10.2.0 </td> <td>A2R10G10B10 </td></tr> <tr> <td>8.8.8.0.0 </td> <td>RGB24 </td> <td>10.10.10.2.0 </td> <td>A2B10G10R10 </td></tr> <tr> <td>5.6.5.0.0 </td> <td>RGB565 </td> <td>4.4.4.4.0 </td> <td>ARGB4444 </td></tr> <tr> <td>5.5.5.0.1 </td> <td>RGB555 </td> <td>5.5.5.1.0 </td> <td>ARGB1555 </td></tr></tbody></table> <table class="wikitable" style="float:right"> <caption>Bit fields for ten RGB bits<sup id="cite_ref-dshow_23-1" class="reference"><a href="#cite_note-dshow-23"><span class="cite-bracket">&#91;</span>23<span class="cite-bracket">&#93;</span></a></sup> </caption> <tbody><tr> <th>Bit field </th> <th>Offset </th> <th colspan="3"><span style="float:right">Bits</span> A2R10G10B10 </th> <th colspan="3"><span style="float:right">Bits</span> A2B10G10R10 </th></tr> <tr> <td>Red </td> <td>36h </td> <td style="color:blue"><code>00 00 F0 3F</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>3FF00000</code> </td> <td><code>20</code>...<code>29</code> </td> <td style="color:red"><code>FF 03 00 00</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>000003FF</code> </td> <td><code>&#160;0</code>...<code>&#160;9</code> </td></tr> <tr> <td>Green </td> <td>3Ah </td> <td><code>00 FC 0F 00</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>000FFC00</code> </td> <td><code>10</code>...<code>19</code> </td> <td><code>00 FC 0F 00</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>000FFC00</code> </td> <td><code>10</code>...<code>19</code> </td></tr> <tr> <td>Blue </td> <td>3Eh </td> <td style="color:red"><code>FF 03 00 00</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>000003FF</code> </td> <td><code>&#160;0</code>...<code>&#160;9</code> </td> <td style="color:blue"><code>00 00 F0 3F</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>3FF00000</code> </td> <td><code>20</code>...<code>29</code> </td></tr> <tr> <td>Alpha </td> <td>42h </td> <td><code>00 00 00 C0</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>C0000000</code> </td> <td><code>30</code>...<code>31</code> </td> <td><code>00 00 00 C0</code> </td> <td><abbr title="little-endian">LE:</abbr> <code>C0000000</code> </td> <td><code>30</code>...<code>31</code> </td></tr></tbody></table><div style="clear:both;" class=""></div> <p>In version 2.1.4 <a href="/wiki/FFmpeg" title="FFmpeg">FFmpeg</a> supported (in its own terminology) the BMP pixel formats <i>bgra, bgr24, rgb565le, rgb555le, rgb444le, rgb8, bgr8, rgb4_byte, bgr4_byte, gray, pal8,</i> and <i>monob</i>; i.e., <i>bgra</i> was the only supported pixel format with transparency.<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">&#91;</span>24<span class="cite-bracket">&#93;</span></a></sup> </p> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:Bmp_format.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Bmp_format.svg/130px-Bmp_format.svg.png" decoding="async" width="130" height="130" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Bmp_format.svg/195px-Bmp_format.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Bmp_format.svg/260px-Bmp_format.svg.png 2x" data-file-width="512" data-file-height="512" /></a><figcaption><a href="#Example_1">Example 1</a> of a 2×2 pixel bitmap, with 24 bits/pixel encoding</figcaption></figure> <div class="mw-heading mw-heading3"><h3 id="Example_1">Example 1</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=12" title="Edit section: Example 1"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Following is an example of a 2×2 pixel, 24-bit bitmap (Windows DIB header <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span>) with pixel format RGB24. </p> <table class="wikitable"> <tbody><tr> <th>Offset </th> <th>Size </th> <th>Hex value </th> <th>Value </th> <th>Description </th></tr> <tr> <td colspan="5" style="text-align: center;">BMP Header </td></tr> <tr> <td align="center">0h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">42 4D </td> <td style="padding: 0px 10px">"BM" </td> <td style="padding: 0px 10px">ID field (42h, 4Dh) </td></tr> <tr> <td align="center">2h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">46&#160;00&#160;00&#160;00 </td> <td style="padding: 0px 10px">70 bytes (54+16) </td> <td style="padding: 0px 10px">Size of the BMP file (54 bytes header + 16 bytes data) </td></tr> <tr> <td align="center">6h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">Unused </td> <td style="padding: 0px 10px">Application specific </td></tr> <tr> <td align="center">8h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">Unused </td> <td style="padding: 0px 10px">Application specific </td></tr> <tr> <td align="center">Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">36 00 00 00 </td> <td style="padding: 0px 10px">54 bytes (14+40) </td> <td style="padding: 0px 10px">Offset where the pixel array (bitmap data) can be found </td></tr> <tr> <td colspan="5" style="text-align: center;">DIB Header </td></tr> <tr> <td align="center">Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">28 00 00 00 </td> <td style="padding: 0px 10px">40 bytes </td> <td style="padding: 0px 10px">Number of bytes in the DIB header (from this point) </td></tr> <tr> <td align="center">12h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">02 00 00 00 </td> <td style="padding: 0px 10px">2 pixels (left to right order) </td> <td style="padding: 0px 10px">Width of the bitmap in pixels </td></tr> <tr> <td align="center">16h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">02 00 00 00 </td> <td style="padding: 0px 10px">2 pixels (bottom to top order) </td> <td style="padding: 0px 10px">Height of the bitmap in pixels. Positive for bottom to top pixel order. </td></tr> <tr> <td align="center">1Ah </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">01 00 </td> <td style="padding: 0px 10px">1 plane </td> <td style="padding: 0px 10px">Number of color planes being used </td></tr> <tr> <td align="center">1Ch </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">18 00 </td> <td style="padding: 0px 10px">24 bits </td> <td style="padding: 0px 10px">Number of bits per pixel </td></tr> <tr> <td align="center">1Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 </td> <td style="padding: 0px 10px">BI_RGB, no pixel array compression used </td></tr> <tr> <td align="center">22h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">10 00 00 00 </td> <td style="padding: 0px 10px">16 bytes </td> <td style="padding: 0px 10px">Size of the raw bitmap data (including padding) </td></tr> <tr> <td align="center">26h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">13 0B 00 00 </td> <td style="padding: 0px 10px">2835 pixels/metre horizontal </td> <td style="padding: 0px 10px" rowspan="2">Print resolution of the image,<br /><a href="/wiki/Dots_per_inch" title="Dots per inch">72 DPI</a> × 39.3701 inches per metre yields 2834.6472 </td></tr> <tr> <td align="center">2Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">13 0B 00 00 </td> <td style="padding: 0px 10px">2835 pixels/metre vertical </td></tr> <tr> <td align="center">2Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 colors </td> <td style="padding: 0px 10px">Number of colors in the palette </td></tr> <tr> <td align="center">32h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 important colors </td> <td style="padding: 0px 10px">0 means all colors are important </td></tr> <tr> <td colspan="5" align="center">Start of pixel array (bitmap data) </td></tr> <tr> <td align="center">36h </td> <td align="center">3 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 FF </td> <td style="padding: 0px 10px">0 0 255 </td> <td style="padding: 0px 10px">Red, Pixel (x=0, y=1) </td></tr> <tr> <td align="center">39h </td> <td align="center">3 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF FF FF </td> <td style="padding: 0px 10px">255 255 255 </td> <td style="padding: 0px 10px">White, Pixel (x=1, y=1) </td></tr> <tr> <td align="center">3Ch </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">0 0 </td> <td style="padding: 0px 10px">Padding for 4 byte alignment (could be a value other than zero) </td></tr> <tr> <td align="center">3Eh </td> <td align="center">3 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF 00 00 </td> <td style="padding: 0px 10px">255 0 0 </td> <td style="padding: 0px 10px">Blue, Pixel (x=0, y=0) </td></tr> <tr> <td align="center">41h </td> <td align="center">3 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 FF 00 </td> <td style="padding: 0px 10px">0 255 0 </td> <td style="padding: 0px 10px">Green, Pixel (x=1, y=0) </td></tr> <tr> <td align="center">44h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">0 0 </td> <td style="padding: 0px 10px">Padding for 4 byte alignment (could be a value other than zero) </td></tr></tbody></table><div style="clear:left;" class=""></div> <figure class="mw-halign-right noresize mw-ext-imagemap-desc-top-left" typeof="mw:File/Frame"><a href="/wiki/Netpbm#Transparency" title="Netpbm#Transparency"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/36/Bmp_format2.svg/260px-Bmp_format2.svg.png" decoding="async" width="260" height="160" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/3/36/Bmp_format2.svg/390px-Bmp_format2.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/3/36/Bmp_format2.svg/520px-Bmp_format2.svg.png 2x" data-file-width="260" data-file-height="160" usemap="#ImageMap_0c2771480795a5e5" resource="/wiki/File:Bmp_format2.svg" /></a><map name="ImageMap_0c2771480795a5e5"><area href="#Transparency" shape="rect" coords="50,50,100,100" alt="0,0: blue 0000FF FF" title="0,0: blue 0000FF FF" /><area href="#Transparency" shape="rect" coords="100,50,150,100" alt="0,1: green 00FF00 FF" title="0,1: green 00FF00 FF" /><area href="#Transparency" shape="rect" coords="150,50,200,100" alt="0,2: red FF00000 FF" title="0,2: red FF00000 FF" /><area href="#Transparency" shape="rect" coords="200,50,250,100" alt="0,3: white FFFFFF FF" title="0,3: white FFFFFF FF" /><area href="#Transparency" shape="rect" coords="50,100,100,150" alt="1,0: blue 0000FF 7F, half transparent" title="1,0: blue 0000FF 7F, half transparent" /><area href="#Transparency" shape="rect" coords="100,100,150,150" alt="1,1: green 00FF00 7F, half transparent" title="1,1: green 00FF00 7F, half transparent" /><area href="#Transparency" shape="rect" coords="150,100,200,150" alt="1,2: red FF0000 7F, half transparent" title="1,2: red FF0000 7F, half transparent" /><area href="#Transparency" shape="rect" coords="200,100,250,150" alt="1,3: white FFFFFF 7F, half transparent" title="1,3: white FFFFFF 7F, half transparent" /></map><figcaption><a href="#Example_2">Example 2</a> of a 4×2 pixel bitmap, with 32 bits/pixel encoding</figcaption></figure> <div class="mw-heading mw-heading3"><h3 id="Example_2">Example 2</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=13" title="Edit section: Example 2"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Following is an example of a 4×2 pixel, 32-bit bitmap with opacity values in the alpha channel (Windows DIB Header <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4HEADER</span>) with pixel format ARGB32. </p> <table class="wikitable"> <tbody><tr> <th>Offset </th> <th>Size </th> <th>Hex value </th> <th>Value </th> <th>Description </th></tr> <tr> <td colspan="5" style="text-align: center;">BMP Header </td></tr> <tr> <td align="center">0h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">42 4D </td> <td style="padding: 0px 10px">"BM" </td> <td style="padding: 0px 10px">ID field (42h, 4Dh) </td></tr> <tr> <td align="center">2h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">9A 00 00 00 </td> <td style="padding: 0px 10px">154 bytes (122+32) </td> <td style="padding: 0px 10px">Size of the BMP file </td></tr> <tr> <td align="center">6h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">Unused </td> <td style="padding: 0px 10px">Application specific </td></tr> <tr> <td align="center">8h </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 </td> <td style="padding: 0px 10px">Unused </td> <td style="padding: 0px 10px">Application specific </td></tr> <tr> <td align="center">Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">7A 00 00 00 </td> <td style="padding: 0px 10px">122 bytes (14+108) </td> <td style="padding: 0px 10px">Offset where the pixel array (bitmap data) can be found </td></tr> <tr> <td colspan="5" style="text-align: center;">DIB Header </td></tr> <tr> <td align="center">Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">6C 00 00 00 </td> <td style="padding: 0px 10px">108 bytes </td> <td style="padding: 0px 10px">Number of bytes in the DIB header (from this point) </td></tr> <tr> <td align="center">12h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">04 00 00 00 </td> <td style="padding: 0px 10px">4 pixels (left to right order) </td> <td style="padding: 0px 10px">Width of the bitmap in pixels </td></tr> <tr> <td align="center">16h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">02 00 00 00 </td> <td style="padding: 0px 10px">2 pixels (bottom to top order) </td> <td style="padding: 0px 10px">Height of the bitmap in pixels </td></tr> <tr> <td align="center">1Ah </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">01 00 </td> <td style="padding: 0px 10px">1 plane </td> <td style="padding: 0px 10px">Number of color planes being used </td></tr> <tr> <td align="center">1Ch </td> <td align="center">2 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">20 00 </td> <td style="padding: 0px 10px">32 bits </td> <td style="padding: 0px 10px">Number of bits per pixel </td></tr> <tr> <td align="center">1Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">03 00 00 00 </td> <td style="padding: 0px 10px">3 </td> <td style="padding: 0px 10px">BI_BITFIELDS, no pixel array compression used </td></tr> <tr> <td align="center">22h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">20 00 00 00 </td> <td style="padding: 0px 10px">32 bytes </td> <td style="padding: 0px 10px">Size of the raw bitmap data (including padding) </td></tr> <tr> <td align="center">26h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">13 0B 00 00 </td> <td style="padding: 0px 10px">2835 pixels/metre horizontal </td> <td style="padding: 0px 10px" rowspan="2">Print resolution of the image,<br /> <a href="/wiki/Dots_per_inch" title="Dots per inch">72 DPI</a> × 39.3701 inches per metre yields 2834.6472 </td></tr> <tr> <td align="center">2Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">13 0B 00 00 </td> <td style="padding: 0px 10px">2835 pixels/metre vertical </td></tr> <tr> <td align="center">2Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 colors </td> <td style="padding: 0px 10px">Number of colors in the palette </td></tr> <tr> <td align="center">32h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 important colors </td> <td style="padding: 0px 10px">0 means all colors are important </td></tr> <tr> <td align="center">36h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 FF 00 </td> <td style="padding: 0px 10px">00FF0000 in big-endian </td> <td style="padding: 0px 10px">Red channel bit mask (valid because BI_BITFIELDS is specified) </td></tr> <tr> <td align="center">3Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 FF 00 00 </td> <td style="padding: 0px 10px">0000FF00 in big-endian </td> <td style="padding: 0px 10px">Green channel bit mask (valid because BI_BITFIELDS is specified) </td></tr> <tr> <td align="center">3Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF 00 00 00 </td> <td style="padding: 0px 10px">000000FF in big-endian </td> <td style="padding: 0px 10px">Blue channel bit mask (valid because BI_BITFIELDS is specified) </td></tr> <tr> <td align="center">42h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 FF </td> <td style="padding: 0px 10px">FF000000 in big-endian </td> <td style="padding: 0px 10px">Alpha channel bit mask </td></tr> <tr> <td align="center">46h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">20 6E 69 57 </td> <td style="padding: 0px 10px">little-endian "<code>Win </code>" </td> <td style="padding: 0px 10px">LCS_WINDOWS_COLOR_SPACE </td></tr> <tr> <td align="center">4Ah </td> <td align="center">24h </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">24h* 00...00 </td> <td style="padding: 0px 10px">CIEXYZTRIPLE Color Space endpoints </td> <td style="padding: 0px 10px">Unused for LCS "<code>Win </code>" or "<code>sRGB</code>" </td></tr> <tr> <td align="center">6Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 Red Gamma </td> <td style="padding: 0px 10px">Unused for LCS "<code>Win </code>" or "<code>sRGB</code>" </td></tr> <tr> <td align="center">72h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 Green Gamma </td> <td style="padding: 0px 10px">Unused for LCS "<code>Win </code>" or "<code>sRGB</code>" </td></tr> <tr> <td align="center">76h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 00 00 </td> <td style="padding: 0px 10px">0 Blue Gamma </td> <td style="padding: 0px 10px">Unused for LCS "<code>Win </code>" or "<code>sRGB</code>" </td></tr> <tr> <td colspan="5" align="center">Start of the Pixel Array (the bitmap Data) </td></tr> <tr> <td align="center">7Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF 00 00 7F </td> <td style="padding: 0px 10px">255 0 0 127 </td> <td style="padding: 0px 10px">Blue (Alpha: 127), Pixel (x=0, y=1) </td></tr> <tr> <td align="center">7Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 FF 00 7F </td> <td style="padding: 0px 10px">0 255 0 127 </td> <td style="padding: 0px 10px">Green (Alpha: 127), Pixel (x=1, y=1) </td></tr> <tr> <td align="center">82h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 FF 7F </td> <td style="padding: 0px 10px">0 0 255 127 </td> <td style="padding: 0px 10px">Red (Alpha: 127), Pixel (x=2, y=1) </td></tr> <tr> <td align="center">86h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF FF FF 7F </td> <td style="padding: 0px 10px">255 255 255 127 </td> <td style="padding: 0px 10px">White (Alpha: 127), Pixel (x=3, y=1) </td></tr> <tr> <td align="center">8Ah </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF 00 00 FF </td> <td style="padding: 0px 10px">255 0 0 255 </td> <td style="padding: 0px 10px">Blue (Alpha: 255), Pixel (x=0, y=0) </td></tr> <tr> <td align="center">8Eh </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 FF 00 FF </td> <td style="padding: 0px 10px">0 255 0 255 </td> <td style="padding: 0px 10px">Green (Alpha: 255), Pixel (x=1, y=0) </td></tr> <tr> <td align="center">92h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">00 00 FF FF </td> <td style="padding: 0px 10px">0 0 255 255 </td> <td style="padding: 0px 10px">Red (Alpha: 255), Pixel (x=2, y=0) </td></tr> <tr> <td align="center">96h </td> <td align="center">4 </td> <td style="padding: 0px 20px; white-space: nowrap; font-family:monospace;">FF FF FF FF </td> <td style="padding: 0px 10px">255 255 255 255 </td> <td style="padding: 0px 10px">White (Alpha: 255), Pixel (x=3, y=0) </td></tr></tbody></table> <p>Note that the bitmap data starts with the lower left hand corner of the image. </p> <div class="mw-heading mw-heading2"><h2 id="Usage_of_BMP_format">Usage of BMP format</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=14" title="Edit section: Usage of BMP format"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>The simplicity of the BMP file format, and its widespread familiarity in Windows and elsewhere, as well as the fact that this format is relatively well documented and has an <a href="/wiki/Open_format" class="mw-redirect" title="Open format">open format</a>, makes BMP a very common format that image processing programs from many operating systems can read and write. <a href="/wiki/ICO_(file_format)" title="ICO (file format)">ICO</a> and CUR files contain bitmaps starting with a BITMAPINFOHEADER. </p><p>Many older <a href="/wiki/Graphical_user_interface" title="Graphical user interface">graphical user interfaces</a> used bitmaps in their built-in graphics subsystems;<sup id="cite_ref-25" class="reference"><a href="#cite_note-25"><span class="cite-bracket">&#91;</span>25<span class="cite-bracket">&#93;</span></a></sup> for example, the Microsoft Windows and OS/2 platforms' <a href="/wiki/Graphics_Device_Interface" title="Graphics Device Interface">GDI</a> subsystem, where the specific format used is the <i>Windows and OS/2 bitmap file format</i>, usually named with the <a href="/wiki/File_extension" class="mw-redirect" title="File extension">file extension</a> of <code>.BMP</code>.<sup id="cite_ref-LoC_26-0" class="reference"><a href="#cite_note-LoC-26"><span class="cite-bracket">&#91;</span>26<span class="cite-bracket">&#93;</span></a></sup> </p><p>While most BMP files have a relatively large file size due to lack of any compression (or generally low-ratio <a href="/wiki/Run-length_encoding" title="Run-length encoding">run-length encoding</a> on palletized images), many BMP files can be considerably compressed with <a href="/wiki/Lossless_data_compression" class="mw-redirect" title="Lossless data compression">lossless data compression</a> algorithms such as <a href="/wiki/ZIP_(file_format)" title="ZIP (file format)">ZIP</a> because they contain redundant data. Some formats, such as <a href="/wiki/RAR_(file_format)" title="RAR (file format)">RAR</a>, even include routines specifically targeted at efficient compression of such data. </p> <div class="mw-heading mw-heading2"><h2 id="Related_formats">Related formats</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=15" title="Edit section: Related formats"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236090951"><div role="note" class="hatnote navigation-not-searchable">Main article: <a href="/wiki/Image_file_formats" class="mw-redirect" title="Image file formats">Image file formats</a></div> <p>The <a href="/wiki/X_Window_System" title="X Window System">X Window System</a> uses a similar <a href="/wiki/X_Bitmap" class="mw-redirect" title="X Bitmap">XBM</a> format for black-and-white images, and <a href="/wiki/X_PixMap" title="X PixMap">XPM</a> (<i>pixelmap</i>) for color images. There are also a variety of "raw" formats, which save raw data with no other information. The <a href="/wiki/Portable_Pixmap" class="mw-redirect" title="Portable Pixmap">Portable Pixmap</a> (PPM) and <a href="/wiki/Truevision_TGA" title="Truevision TGA">Truevision TGA</a> formats also exist, but are less often used&#160;– or only for special purposes; for example, TGA can contain transparency information. </p> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=16" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist reflist-columns references-column-width" style="column-width: 30em;"> <ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite class="citation cs1"><a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc7903#section-5">"IANA Considerations"</a>. <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc7903"><i>Windows Image Media Types</i></a>. sec.&#160;5. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://doi.org/10.17487%2FRFC7903">10.17487/RFC7903</a></span>. <a href="/wiki/Request_for_Comments" title="Request for Comments">RFC</a> <a rel="nofollow" class="external text" href="https://datatracker.ietf.org/doc/html/rfc7903">7903</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=bookitem&amp;rft.atitle=IANA+Considerations&amp;rft.btitle=Windows+Image+Media+Types&amp;rft.pages=sec.-5&amp;rft_id=info%3Adoi%2F10.17487%2F&#82;FC7903&amp;rft_id=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc7903%26%23035%3Bsection-5&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-bmp-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-bmp_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-bmp_2-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-bmp_2-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJames_D._MurrayWilliam_vanRyper1996" class="citation book cs1">James D. Murray; William vanRyper (April 1996). <a rel="nofollow" class="external text" href="https://archive.org/details/mac_Graphics_File_Formats_Second_Edition_1996/page/"><i>Encyclopedia of Graphics File Formats</i></a> (Second&#160;ed.). <a href="/wiki/O%27Reilly_Media" title="O&#39;Reilly Media">O'Reilly</a>. <a rel="nofollow" class="external text" href="https://archive.org/details/mac_Graphics_File_Formats_Second_Edition_1996/page/">bmp</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/1-56592-161-5" title="Special:BookSources/1-56592-161-5"><bdi>1-56592-161-5</bdi></a><span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-07</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Encyclopedia+of+Graphics+File+Formats&amp;rft.pages=bmp&amp;rft.edition=Second&amp;rft.pub=O%27Reilly&amp;rft.date=1996-04&amp;rft.isbn=1-56592-161-5&amp;rft.au=James+D.+Murray&amp;rft.au=William+vanRyper&amp;rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fmac_Graphics_File_Formats_Second_Edition_1996%2Fpage%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-os2bmp-3"><span class="mw-cite-backlink">^ <a href="#cite_ref-os2bmp_3-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-os2bmp_3-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-os2bmp_3-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-os2bmp_3-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-os2bmp_3-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-os2bmp_3-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-os2bmp_3-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-os2bmp_3-7"><sup><i><b>h</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJames_D._MurrayWilliam_vanRyper1996" class="citation book cs1">James D. Murray; William vanRyper (April 1996). <a rel="nofollow" class="external text" href="https://archive.org/details/mac_Graphics_File_Formats_Second_Edition_1996/page/"><i>Encyclopedia of Graphics File Formats</i></a> (Second&#160;ed.). <a href="/wiki/O%27Reilly_Media" title="O&#39;Reilly Media">O'Reilly</a>. <a rel="nofollow" class="external text" href="https://archive.org/details/mac_Graphics_File_Formats_Second_Edition_1996/page/">os2bmp</a>. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/1-56592-161-5" title="Special:BookSources/1-56592-161-5"><bdi>1-56592-161-5</bdi></a><span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-07</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Encyclopedia+of+Graphics+File+Formats&amp;rft.pages=os2bmp&amp;rft.edition=Second&amp;rft.pub=O%27Reilly&amp;rft.date=1996-04&amp;rft.isbn=1-56592-161-5&amp;rft.au=James+D.+Murray&amp;rft.au=William+vanRyper&amp;rft_id=https%3A%2F%2Farchive.org%2Fdetails%2Fmac_Graphics_File_Formats_Second_Edition_1996%2Fpage%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-v11-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-v11_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-v11_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/cc250370.aspx">"[MS-WMF]: Windows Metafile Format"</a>. <a href="/wiki/MSDN" class="mw-redirect" title="MSDN">MSDN</a>. 2014-02-13<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-12</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=%5BMS-WMF%5D%3A+Windows+Metafile+Format&amp;rft.pub=MSDN&amp;rft.date=2014-02-13&amp;rft_id=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fcc250370.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-DIBhelp-5"><span class="mw-cite-backlink">^ <a href="#cite_ref-DIBhelp_5-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-6"><sup><i><b>g</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-7"><sup><i><b>h</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-8"><sup><i><b>i</b></i></sup></a> <a href="#cite_ref-DIBhelp_5-9"><sup><i><b>j</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://msdn.microsoft.com/en-us/library/ms969901.aspx">"DIBs and Their Uses"</a>. <i>Microsoft Help and Support</i><span class="reference-accessdate">. Retrieved <span class="nowrap">2015-05-14</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Microsoft+Help+and+Support&amp;rft.atitle=DIBs+and+Their+Uses&amp;rft_id=https%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms969901.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-AlphaBitFields-6"><span class="mw-cite-backlink">^ <a href="#cite_ref-AlphaBitFields_6-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-AlphaBitFields_6-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-AlphaBitFields_6-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text">MSDN - <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> (Windows CE 5.0): <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/aa452885.aspx">BI_ALPHABITFIELDS in biCompression member</a></span> </li> <li id="cite_note-DIBHeaderTypes-7"><span class="mw-cite-backlink">^ <a href="#cite_ref-DIBHeaderTypes_7-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-DIBHeaderTypes_7-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-DIBHeaderTypes_7-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text">MSDN <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd183386%28VS.85%29.aspx">Bitmap Header Types</a></span> </li> <li id="cite_note-BITMAPINFO-8"><span class="mw-cite-backlink">^ <a href="#cite_ref-BITMAPINFO_8-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-BITMAPINFO_8-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-BITMAPINFO_8-2"><sup><i><b>c</b></i></sup></a></span> <span class="reference-text">MSDN <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd183375%28VS.85%29.aspx">BITMAPINFO Structure</a></span> </li> <li id="cite_note-PackedDIB-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-PackedDIB_9-0">^</a></b></span> <span class="reference-text">Feng Yuan - Windows graphics programming: Win32 GDI and DirectDraw: <a rel="nofollow" class="external text" href="https://books.google.com/books?id=-O92IIF1Bj4C&amp;pg=PA595">Packed Device-Independent Bitmap (CreateDIBPatternBrush, CreateDIBPatternBrushPt, FindResource, LoadResource, LockResource)</a></span> </li> <li id="cite_note-pal8os2v2-16.bmp-10"><span class="mw-cite-backlink"><b><a href="#cite_ref-pal8os2v2-16.bmp_10-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSummers2015" class="citation web cs1">Summers, Jason (2015-10-30). <a rel="nofollow" class="external text" href="http://entropymine.com/jason/bmpsuite/bmpsuite/q/pal8os2v2-16.bmp">"pal8os2v2-16.bmp"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-07-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=pal8os2v2-16.bmp&amp;rft.date=2015-10-30&amp;rft.aulast=Summers&amp;rft.aufirst=Jason&amp;rft_id=http%3A%2F%2Fentropymine.com%2Fjason%2Fbmpsuite%2Fbmpsuite%2Fq%2Fpal8os2v2-16.bmp&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-bmpsuite-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-bmpsuite_11-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFSummers2015" class="citation web cs1">Summers, Jason (2015-10-30). <a rel="nofollow" class="external text" href="http://entropymine.com/jason/bmpsuite/">"BMP Suite"</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2016-07-06</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=BMP+Suite&amp;rft.date=2015-10-30&amp;rft.aulast=Summers&amp;rft.aufirst=Jason&amp;rft_id=http%3A%2F%2Fentropymine.com%2Fjason%2Fbmpsuite%2F&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFCox2010" class="citation web cs1">Cox, Chris (2010-11-15). <a rel="nofollow" class="external text" href="https://forums.adobe.com/message/3272950#3272950">"Invalid BMP Format with Alpha channel"</a>. <i><a href="/wiki/Adobe_Photoshop" title="Adobe Photoshop">Photoshop Windows</a> forum</i>. <a href="/wiki/Adobe_Systems" class="mw-redirect" title="Adobe Systems">Adobe</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20150127132443/https://forums.adobe.com/message/3272950">Archived</a> from the original on 2015-01-27<span class="reference-accessdate">. Retrieved <span class="nowrap">2016-05-22</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Photoshop+Windows+forum&amp;rft.atitle=Invalid+BMP+Format+with+Alpha+channel&amp;rft.date=2010-11-15&amp;rft.aulast=Cox&amp;rft.aufirst=Chris&amp;rft_id=https%3A%2F%2Fforums.adobe.com%2Fmessage%2F3272950%233272950&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.fileformat.info/format/bmp/egff.htm">"Microsoft Windows Bitmap: Summary from the Encyclopedia of Graphics File Formats"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Microsoft+Windows+Bitmap%3A+Summary+from+the+Encyclopedia+of+Graphics+File+Formats&amp;rft_id=https%3A%2F%2Fwww.fileformat.info%2Fformat%2Fbmp%2Fegff.htm&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-onlyprint-14"><span class="mw-cite-backlink">^ <a href="#cite_ref-onlyprint_14-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-onlyprint_14-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd145023(VS.85).aspx">"JPEG and PNG Extensions for Specific Bitmap Functions and Structures"</a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=JPEG+and+PNG+Extensions+for+Specific+Bitmap+Functions+and+Structures&amp;rft_id=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fdd145023%28VS.85%29.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-15"><span class="mw-cite-backlink"><b><a href="#cite_ref-15">^</a></b></span> <span class="reference-text">MSDN – <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPV4HEADER</span>: <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd183380%28VS.85%29.aspx">The member bV4AlphaMask</a></span> </li> <li id="cite_note-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-16">^</a></b></span> <span class="reference-text">MSDN – RGBQUAD: <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd162938%28VS.85%29.aspx">rgbReserved member</a></span> </li> <li id="cite_note-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-17">^</a></b></span> <span class="reference-text">see note under biClrUsed <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd183376(v=vs.85).aspx">MSDN <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span></a></span> </li> <li id="cite_note-Image_Stride-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-Image_Stride_18-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/windows/win32/medfound/image-stride">"Image Stride - Win32 apps"</a>. <i>learn.microsoft.com</i>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=learn.microsoft.com&amp;rft.atitle=Image+Stride+-+Win32+apps&amp;rft_id=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Fmedfound%2Fimage-stride&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text">MSDN - <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span>: <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/dd183376%28VS.85%29.aspx">The member biBitCount</a></span> </li> <li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/ms536393(v=vs.85).aspx">"Types of Bitmaps"</a>. <a href="/wiki/Microsoft_Developer_Network" title="Microsoft Developer Network">MSDN</a>. 2012-06-03<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-16</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=unknown&amp;rft.btitle=Types+of+Bitmaps&amp;rft.pub=MSDN&amp;rft.date=2012-06-03&amp;rft_id=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms536393%28v%3Dvs.85%29.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-PSformats-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-PSformats_21-0">^</a></b></span> <span class="reference-text">MSDN: <a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/ms959648.aspx">Windows CE - <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r886049734"><span class="monospaced">BITMAPINFOHEADER</span> Structure</a></span> </li> <li id="cite_note-PSformats2-22"><span class="mw-cite-backlink">^ <a href="#cite_ref-PSformats2_22-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-PSformats2_22-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text">Adobe Photoshop: <a rel="nofollow" class="external text" href="http://livedocs.adobe.com/en_US/Photoshop/10.0/WSfd1234e1c4b69f30ea53e41001031ab64-7751.html">BMP Format</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20110922225022/http://livedocs.adobe.com/en_US/Photoshop/10.0/WSfd1234e1c4b69f30ea53e41001031ab64-7751.html">Archived</a> 2011-09-22 at the <a href="/wiki/Wayback_Machine" title="Wayback Machine">Wayback Machine</a></span> </li> <li id="cite_note-dshow-23"><span class="mw-cite-backlink">^ <a href="#cite_ref-dshow_23-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-dshow_23-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd407253(v=vs.85).aspx">"Uncompressed RGB Video Subtypes"</a>. <i>dshow.h</i>. <a href="/wiki/MSDN" class="mw-redirect" title="MSDN">MSDN</a><span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-11</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=dshow.h&amp;rft.atitle=Uncompressed+RGB+Video+Subtypes&amp;rft_id=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fwindows%2Fdesktop%2Fdd407253%28v%3Dvs.85%29.aspx&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.ffmpeg.org/general.html#Image-Formats">"Image Formats"</a>. <i><a href="/wiki/FFmpeg" title="FFmpeg">FFmpeg</a> General Documentation</i>. 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-02-23</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=FFmpeg+General+Documentation&amp;rft.atitle=Image+Formats&amp;rft.date=2014&amp;rft_id=http%3A%2F%2Fwww.ffmpeg.org%2Fgeneral.html%23Image-Formats&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-25">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite id="CITEREFJulian_SmartStefan_CsomorKevin_Hock2006" class="citation book cs1">Julian Smart; Stefan Csomor &amp; Kevin Hock (2006). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=CyMsvtgnq0QC&amp;q=bitmap+pixmap+gui&amp;pg=PA265"><i>Cross-Platform GUI Programming with Wxwidgets</i></a>. Prentice Hall. <a href="/wiki/ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a>&#160;<a href="/wiki/Special:BookSources/0-13-147381-6" title="Special:BookSources/0-13-147381-6"><bdi>0-13-147381-6</bdi></a>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&amp;rft.genre=book&amp;rft.btitle=Cross-Platform+GUI+Programming+with+Wxwidgets&amp;rft.pub=Prentice+Hall&amp;rft.date=2006&amp;rft.isbn=0-13-147381-6&amp;rft.au=Julian+Smart&amp;rft.au=Stefan+Csomor&amp;rft.au=Kevin+Hock&amp;rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3DCyMsvtgnq0QC%26q%3Dbitmap%2Bpixmap%2Bgui%26pg%3DPA265&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> <li id="cite_note-LoC-26"><span class="mw-cite-backlink"><b><a href="#cite_ref-LoC_26-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.digitalpreservation.gov/formats/fdd/fdd000189.shtml">"Bitmap Image File (BMP), Version 5"</a>. <i>Digital Preservation</i>. <a href="/wiki/Library_of_Congress" title="Library of Congress">Library of Congress</a>. 2014-01-08<span class="reference-accessdate">. Retrieved <span class="nowrap">2014-03-11</span></span>.</cite><span title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&amp;rft.genre=unknown&amp;rft.jtitle=Digital+Preservation&amp;rft.atitle=Bitmap+Image+File+%28BMP%29%2C+Version+5&amp;rft.date=2014-01-08&amp;rft_id=http%3A%2F%2Fwww.digitalpreservation.gov%2Fformats%2Ffdd%2Ffdd000189.shtml&amp;rfr_id=info%3Asid%2Fen.wikipedia.org%3ABMP+file+format" class="Z3988"></span></span> </li> </ol></div> <div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=BMP_file_format&amp;action=edit&amp;section=17" title="Edit section: External links"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li><a rel="nofollow" class="external text" href="http://www.digicamsoft.com/bmp/bmp.html">Bitmap File Structure</a>, at digicamsoft.com</li> <li><a rel="nofollow" class="external text" href="http://www.herdsoft.com/ti/davincie/imex3j8i.htm">An introduction to DIBs (Device Independent Bitmaps)</a>, at herdsoft.com</li> <li><a rel="nofollow" class="external text" href="http://www.kalytta.com/bitmap.h">A simple bitmap loader C++ class</a>, at kalytta.com (A2R10G10B10 not yet<sup class="plainlinks noexcerpt noprint asof-tag update" style="display:none;"><a class="external text" href="https://en.wikipedia.org/w/index.php?title=BMP_file_format&amp;action=edit">&#91;update&#93;</a></sup> supported)</li> <li><a rel="nofollow" class="external text" href="http://drdobbs.com/architecture-and-design/184409517">The BMP File Format, Part 1 By David Charlap</a> at Dr. Dobb's journal of software tools (drdobbs.com), March 1995</li></ul> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Multimedia_compression_and_container_formats" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Compression_formats" title="Template:Compression formats"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Compression_formats" title="Template talk:Compression formats"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Compression_formats" title="Special:EditPage/Template:Compression formats"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Multimedia_compression_and_container_formats" style="font-size:114%;margin:0 4em"><a href="/wiki/Multimedia" title="Multimedia">Multimedia</a> <a href="/wiki/Data_compression" title="Data compression">compression</a> and <a href="/wiki/Container_format_(computing)" class="mw-redirect" title="Container format (computing)">container</a> formats</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Video_coding_format" title="Video coding format">Video<br />compression</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">ISO</a>, <a href="/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission">IEC</a>, <br /><a href="/wiki/Moving_Picture_Experts_Group" title="Moving Picture Experts Group">MPEG</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/DV_(video_format)" title="DV (video format)">DV</a></li> <li><a href="/wiki/Motion_JPEG" title="Motion JPEG">MJPEG</a></li> <li><a href="/wiki/Motion_JPEG_2000" title="Motion JPEG 2000">Motion JPEG 2000</a></li> <li><a href="/wiki/MPEG-1" title="MPEG-1">MPEG-1</a></li> <li><a href="/wiki/MPEG-2" title="MPEG-2">MPEG-2</a> <ul><li><a href="/wiki/H.262/MPEG-2_Part_2" title="H.262/MPEG-2 Part 2">Part 2</a></li></ul></li> <li><a href="/wiki/MPEG-4" title="MPEG-4">MPEG-4</a> <ul><li><a href="/wiki/MPEG-4_Part_2" title="MPEG-4 Part 2">Part 2 / ASP</a></li> <li><a href="/wiki/H.264/MPEG-4_AVC" class="mw-redirect" title="H.264/MPEG-4 AVC">Part 10 / AVC</a></li> <li><a href="/wiki/MPEG-4_IVC" class="mw-redirect" title="MPEG-4 IVC">Part 33 / IVC</a></li></ul></li> <li><a href="/wiki/MPEG-H" title="MPEG-H">MPEG-H</a> <ul><li><a href="/wiki/High_Efficiency_Video_Coding" title="High Efficiency Video Coding">Part 2 / HEVC</a></li></ul></li> <li><a href="/w/index.php?title=MPEG-I&amp;action=edit&amp;redlink=1" class="new" title="MPEG-I (page does not exist)">MPEG-I</a> <ul><li><a href="/wiki/Versatile_Video_Coding" title="Versatile Video Coding">Part 3 / VVC</a></li></ul></li> <li><a href="/wiki/MPEG-5" class="mw-redirect" title="MPEG-5">MPEG-5</a> <ul><li><a href="/wiki/Essential_Video_Coding" title="Essential Video Coding">Part 1 / EVC</a></li> <li><a href="/wiki/LCEVC" title="LCEVC">Part 2 / LCEVC</a></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/ITU-T" title="ITU-T">ITU-T</a>, <a href="/wiki/Video_Coding_Experts_Group" title="Video Coding Experts Group">VCEG</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/H.120" title="H.120">H.120</a></li> <li><a href="/wiki/H.261" title="H.261">H.261</a></li> <li><a href="/wiki/H.262/MPEG-2_Part_2" title="H.262/MPEG-2 Part 2">H.262</a></li> <li><a href="/wiki/H.263" title="H.263">H.263</a></li> <li><a href="/wiki/Advanced_Video_Coding" title="Advanced Video Coding">H.264 / AVC</a></li> <li><a href="/wiki/High_Efficiency_Video_Coding" title="High Efficiency Video Coding">H.265 / HEVC</a></li> <li><a href="/wiki/Versatile_Video_Coding" title="Versatile Video Coding">H.266 / VVC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/Society_of_Motion_Picture_and_Television_Engineers" title="Society of Motion Picture and Television Engineers">SMPTE</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/VC-1" title="VC-1">VC-1</a></li> <li><a href="/wiki/Dirac_(video_compression_format)" title="Dirac (video compression format)">VC-2</a></li> <li><a href="/wiki/Avid_DNxHD" title="Avid DNxHD">VC-3</a></li> <li><a href="/wiki/CineForm" title="CineForm">VC-5</a></li> <li><a href="/wiki/VC-6" title="VC-6">VC-6</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/On2_Technologies" title="On2 Technologies">TrueMotion</a> and AOMedia</th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/On2_Technologies#TrueMotion_S" title="On2 Technologies">TrueMotion S</a></li> <li><a href="/wiki/VP3" title="VP3">VP3</a></li> <li><a href="/wiki/VP6" title="VP6">VP6</a></li> <li><a href="/wiki/VP7" class="mw-redirect" title="VP7">VP7</a></li> <li><a href="/wiki/VP8" title="VP8">VP8</a></li> <li><a href="/wiki/VP9" title="VP9">VP9</a></li> <li><a href="/wiki/AV1" title="AV1">AV1</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Chinese Standard</th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Audio_Video_Standard#First_generation" title="Audio Video Standard">AVS1 P2/AVS+</a>(GB/T 20090.2/16)</li> <li><a href="/wiki/Audio_Video_Standard#Second_generation" title="Audio Video Standard">AVS2 P2</a>(GB/T 33475.2,GY/T 299.1) <ul><li>HDR Vivid(GY/T 358)</li></ul></li> <li>AVS3 P2(GY/T 368)</li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Others</th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Apple_Video" title="Apple Video">Apple Video</a></li> <li><a href="/wiki/Audio_Video_Standard" title="Audio Video Standard">AVS</a></li> <li><a href="/wiki/Bink_Video" title="Bink Video">Bink</a></li> <li><a href="/wiki/Cinepak" title="Cinepak">Cinepak</a></li> <li><a href="/wiki/Daala" title="Daala">Daala</a></li> <li><a href="/wiki/Digital_Video_Interactive" title="Digital Video Interactive">DVI</a></li> <li><a href="/wiki/FFV1" title="FFV1">FFV1</a></li> <li><a href="/wiki/Huffyuv" title="Huffyuv">Huffyuv</a></li> <li><a href="/wiki/Indeo" title="Indeo">Indeo</a></li> <li><a href="/wiki/Lagarith" title="Lagarith">Lagarith</a></li> <li><a href="/wiki/Microsoft_Video_1" title="Microsoft Video 1">Microsoft Video 1</a></li> <li><a href="/wiki/MSU_Lossless_Video_Codec" title="MSU Lossless Video Codec">MSU Lossless</a></li> <li><a href="/wiki/OMS_Video" title="OMS Video">OMS Video</a></li> <li><a href="/wiki/Pixlet" title="Pixlet">Pixlet</a></li> <li><a href="/wiki/Apple_ProRes" title="Apple ProRes">ProRes</a> <ul><li><a href="/wiki/ProRes_422" class="mw-redirect" title="ProRes 422">422</a></li> <li><a href="/wiki/ProRes_4444" class="mw-redirect" title="ProRes 4444">4444</a></li></ul></li> <li>QuickTime <ul><li><a href="/wiki/QuickTime_Animation" title="QuickTime Animation">Animation</a></li> <li><a href="/wiki/QuickTime_Graphics" title="QuickTime Graphics">Graphics</a></li></ul></li> <li><a href="/wiki/RealVideo" title="RealVideo">RealVideo</a></li> <li><a href="/wiki/RTVideo" title="RTVideo">RTVideo</a></li> <li><a href="/wiki/SheerVideo" title="SheerVideo">SheerVideo</a></li> <li><a href="/wiki/Smacker_video" title="Smacker video">Smacker</a></li> <li><a href="/wiki/Sorenson_Media" title="Sorenson Media">Sorenson Video/Spark</a></li> <li><a href="/wiki/Theora" title="Theora">Theora</a></li> <li><a href="/wiki/Thor_(video_codec)" title="Thor (video codec)">Thor</a></li> <li><a href="/wiki/Ut_Video_Codec_Suite" title="Ut Video Codec Suite">Ut</a></li> <li><a href="/wiki/Windows_Media_Video" title="Windows Media Video">WMV</a></li> <li><a href="/wiki/RatDVD" title="RatDVD">XEB</a></li> <li><a href="/wiki/YULS" title="YULS">YULS</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Audio_coding_format" title="Audio coding format">Audio<br />compression</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">ISO</a>, <a href="/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission">IEC</a>,<br /> <a href="/wiki/Moving_Picture_Experts_Group" title="Moving Picture Experts Group">MPEG</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/MPEG-1_Audio_Layer_II" title="MPEG-1 Audio Layer II">MPEG-1 Layer II</a> <ul><li><a href="/wiki/MPEG_Multichannel" title="MPEG Multichannel">Multichannel</a></li></ul></li> <li><a href="/wiki/MPEG-1_Audio_Layer_I" title="MPEG-1 Audio Layer I">MPEG-1 Layer I</a></li> <li><a href="/wiki/MP3" title="MP3">MPEG-1 Layer III (MP3)</a></li> <li><a href="/wiki/Advanced_Audio_Coding" title="Advanced Audio Coding">AAC</a> <ul><li><a href="/wiki/High-Efficiency_Advanced_Audio_Coding" title="High-Efficiency Advanced Audio Coding">HE-AAC</a></li> <li><a href="/wiki/AAC-LD" title="AAC-LD">AAC-LD</a></li></ul></li> <li><a href="/wiki/MPEG_Surround" title="MPEG Surround">MPEG Surround</a></li> <li><a href="/wiki/Audio_Lossless_Coding" title="Audio Lossless Coding">MPEG-4 ALS</a></li> <li><a href="/wiki/MPEG-4_SLS" title="MPEG-4 SLS">MPEG-4 SLS</a></li> <li><a href="/wiki/Super_Audio_CD#DST" title="Super Audio CD">MPEG-4 DST</a></li> <li><a href="/wiki/Harmonic_Vector_Excitation_Coding" title="Harmonic Vector Excitation Coding">MPEG-4 HVXC</a></li> <li><a href="/wiki/Code-excited_linear_prediction" title="Code-excited linear prediction">MPEG-4 CELP</a></li> <li><a href="/wiki/Unified_Speech_and_Audio_Coding" title="Unified Speech and Audio Coding">MPEG-D USAC</a></li> <li><a href="/wiki/MPEG-H_3D_Audio" title="MPEG-H 3D Audio">MPEG-H 3D Audio</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/ITU-T" title="ITU-T">ITU-T</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/G.711" title="G.711">G.711</a> <ul><li><a href="/wiki/A-law_algorithm" title="A-law algorithm">A-law</a></li> <li><a href="/wiki/%CE%9C-law_algorithm" title="Μ-law algorithm">µ-law</a></li></ul></li> <li><a href="/wiki/G.718" title="G.718">G.718</a></li> <li><a href="/wiki/G.719" title="G.719">G.719</a></li> <li><a href="/wiki/G.722" title="G.722">G.722</a></li> <li><a href="/wiki/G.722.1" title="G.722.1">G.722.1</a></li> <li><a href="/wiki/Adaptive_Multi-Rate_Wideband" title="Adaptive Multi-Rate Wideband">G.722.2</a></li> <li><a href="/wiki/G.723" title="G.723">G.723</a></li> <li><a href="/wiki/G.723.1" title="G.723.1">G.723.1</a></li> <li><a href="/wiki/G.726" title="G.726">G.726</a></li> <li><a href="/wiki/G.728" title="G.728">G.728</a></li> <li><a href="/wiki/G.729" title="G.729">G.729</a></li> <li><a href="/wiki/G.729.1" title="G.729.1">G.729.1</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force">IETF</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Opus_(audio_format)" title="Opus (audio format)">Opus</a></li> <li><a href="/wiki/Internet_Low_Bitrate_Codec" title="Internet Low Bitrate Codec">iLBC</a></li> <li><a href="/wiki/Speex" title="Speex">Speex</a></li> <li><a href="/wiki/Vorbis" title="Vorbis">Vorbis</a></li> <li><a href="/wiki/FLAC" title="FLAC">FLAC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/3GPP" title="3GPP">3GPP</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Adaptive_Multi-Rate_audio_codec" title="Adaptive Multi-Rate audio codec">AMR</a></li> <li><a href="/wiki/Adaptive_Multi-Rate_Wideband" title="Adaptive Multi-Rate Wideband">AMR-WB</a></li> <li><a href="/wiki/Extended_Adaptive_Multi-Rate_%E2%80%93_Wideband" title="Extended Adaptive Multi-Rate – Wideband">AMR-WB+</a></li> <li><a href="/wiki/Enhanced_Variable_Rate_Codec" title="Enhanced Variable Rate Codec">EVRC</a></li> <li><a href="/wiki/Enhanced_Variable_Rate_Codec_B" title="Enhanced Variable Rate Codec B">EVRC-B</a></li> <li><a href="/wiki/Enhanced_Voice_Services" title="Enhanced Voice Services">EVS</a></li> <li><a href="/wiki/Half_Rate" title="Half Rate">GSM-HR</a></li> <li><a href="/wiki/Full_Rate" title="Full Rate">GSM-FR</a></li> <li><a href="/wiki/Enhanced_full_rate" title="Enhanced full rate">GSM-EFR</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/ETSI" class="mw-redirect" title="ETSI">ETSI</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Dolby_Digital" title="Dolby Digital">AC-3</a></li> <li><a href="/wiki/Dolby_AC-4" title="Dolby AC-4">AC-4</a></li> <li><a href="/wiki/DTS_(sound_system)" class="mw-redirect" title="DTS (sound system)">DTS</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/Bluetooth_Special_Interest_Group" title="Bluetooth Special Interest Group">Bluetooth SIG</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/SBC_(codec)" title="SBC (codec)">SBC</a></li> <li><a href="/wiki/LC3_(codec)" title="LC3 (codec)">LC3</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Chinese Standard</th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Audio_Video_Standard#First_generation" title="Audio Video Standard">AVS1 P10</a>(GB/T 20090.10)</li> <li><a href="/wiki/Audio_Video_Standard#Second_generation" title="Audio Video Standard">AVS2 P3</a>(GB/T 33475.3) <ul><li><a href="/w/index.php?title=Audio_Vivid&amp;action=edit&amp;redlink=1" class="new" title="Audio Vivid (page does not exist)">Audio Vivid</a>(GY/T 363)</li></ul></li> <li><a href="/wiki/Dynamic_Resolution_Adaptation" title="Dynamic Resolution Adaptation">DRA</a>(GB/T 22726)</li> <li><a href="/wiki/L2HC" title="L2HC">L2HC</a></li> <li>ExAC(SJ/T 11299.4)</li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Others</th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Algebraic_code-excited_linear_prediction" title="Algebraic code-excited linear prediction">ACELP</a></li> <li><a href="/wiki/Apple_Lossless_Audio_Codec" title="Apple Lossless Audio Codec">ALAC</a></li> <li><a href="/wiki/Asao_(codec)" title="Asao (codec)">Asao</a></li> <li><a href="/wiki/Adaptive_Transform_Acoustic_Coding" class="mw-redirect" title="Adaptive Transform Acoustic Coding">ATRAC</a></li> <li><a href="/wiki/CELT" title="CELT">CELT</a></li> <li><a href="/wiki/Codec_2" title="Codec 2">Codec 2</a></li> <li><a href="/wiki/Internet_Speech_Audio_Codec" title="Internet Speech Audio Codec">iSAC</a></li> <li><a href="/wiki/Lyra_(codec)" title="Lyra (codec)">Lyra</a></li> <li><a href="/wiki/Mixed-excitation_linear_prediction" title="Mixed-excitation linear prediction">MELP</a></li> <li><a href="/wiki/Monkey%27s_Audio" title="Monkey&#39;s Audio">Monkey's Audio</a></li> <li><a href="/wiki/MT9" title="MT9">MT9</a></li> <li><a href="/wiki/Musepack" title="Musepack">Musepack</a></li> <li><a href="/wiki/OptimFROG" title="OptimFROG">OptimFROG</a></li> <li><a href="/wiki/Original_Sound_Quality" title="Original Sound Quality">OSQ</a></li> <li><a href="/wiki/Qualcomm_code-excited_linear_prediction" title="Qualcomm code-excited linear prediction">QCELP</a></li> <li><a href="/wiki/Relaxed_code-excited_linear_prediction" title="Relaxed code-excited linear prediction">RCELP</a></li> <li><a href="/wiki/RealAudio" title="RealAudio">RealAudio</a></li> <li><a href="/wiki/RTAudio" title="RTAudio">RTAudio</a></li> <li><a href="/wiki/Avid_Audio#Sound_Designer_file_formats" title="Avid Audio">SD2</a></li> <li><a href="/wiki/Shorten_file_format" class="mw-redirect" title="Shorten file format">SHN</a></li> <li><a href="/wiki/SILK" title="SILK">SILK</a></li> <li><a href="/wiki/Siren_(codec)" title="Siren (codec)">Siren</a></li> <li><a href="/wiki/Selectable_Mode_Vocoder" title="Selectable Mode Vocoder">SMV</a></li> <li><a href="/wiki/SVOPC" title="SVOPC">SVOPC</a></li> <li>TTA <ul><li>True Audio</li></ul></li> <li><a href="/wiki/TwinVQ" title="TwinVQ">TwinVQ</a></li> <li><a href="/wiki/Variable-Rate_Multimode_Wideband" title="Variable-Rate Multimode Wideband">VMR-WB</a></li> <li><a href="/wiki/Vector_sum_excited_linear_prediction" title="Vector sum excited linear prediction">VSELP</a></li> <li><a href="/wiki/WavPack" title="WavPack">WavPack</a></li> <li><a href="/wiki/Windows_Media_Audio" title="Windows Media Audio">WMA</a></li> <li><a href="/wiki/Master_Quality_Authenticated" title="Master Quality Authenticated">MQA</a></li> <li><a href="/wiki/AptX" title="AptX">aptX</a></li> <li><a href="/wiki/AptX#aptX_HD" title="AptX">aptX HD</a></li> <li><a href="/wiki/AptX#aptX_Low_Latency" title="AptX">aptX Low Latency</a></li> <li><a href="/wiki/AptX#aptX_Adaptive" title="AptX">aptX Adaptive</a></li> <li><a href="/wiki/LDAC_(codec)" title="LDAC (codec)">LDAC</a></li> <li><a href="/wiki/LHDC_(codec)" title="LHDC (codec)">LHDC</a></li> <li><a href="/wiki/LHDC_(codec)#LLAC" title="LHDC (codec)">LLAC</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Image_compression" title="Image compression">Image<br />compression</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission">IEC</a>, <a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">ISO</a>, <a href="/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force">IETF</a>, <br /><a href="/wiki/World_Wide_Web_Consortium" title="World Wide Web Consortium">W3C</a>, <a href="/wiki/ITU-T" title="ITU-T">ITU-T</a>, <a href="/wiki/Joint_Photographic_Experts_Group" title="Joint Photographic Experts Group">JPEG</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Group_4_compression" title="Group 4 compression">CCITT Group 4</a></li> <li><a href="/wiki/GIF" title="GIF">GIF</a></li> <li><a href="/wiki/High_Efficiency_Image_File_Format#HEIC:_HEVC_in_HEIF" title="High Efficiency Image File Format">HEIC / HEIF</a></li> <li><a href="/wiki/High_Efficiency_Video_Coding#Main_Still_Picture" title="High Efficiency Video Coding">HEVC</a></li> <li><a href="/wiki/JBIG" title="JBIG">JBIG</a></li> <li><a href="/wiki/JBIG2" title="JBIG2">JBIG2</a></li> <li><a href="/wiki/JPEG" title="JPEG">JPEG</a></li> <li><a href="/wiki/JPEG_2000" title="JPEG 2000">JPEG 2000</a></li> <li><a href="/wiki/JPEG-LS" class="mw-redirect" title="JPEG-LS">JPEG-LS</a></li> <li><a href="/wiki/JPEG_XL" title="JPEG XL">JPEG XL</a></li> <li><a href="/wiki/JPEG_XR" title="JPEG XR">JPEG XR</a></li> <li><a href="/wiki/JPEG_XS" title="JPEG XS">JPEG XS</a></li> <li><a href="/wiki/JPEG_XT" title="JPEG XT">JPEG XT</a></li> <li><a href="/wiki/Portable_Network_Graphics" class="mw-redirect" title="Portable Network Graphics">PNG</a></li> <li><a href="/wiki/TIFF" title="TIFF">TIFF</a></li> <li><a href="/wiki/TIFF/EP" title="TIFF/EP">TIFF/EP</a></li> <li><a href="/wiki/TIFF/IT" class="mw-redirect" title="TIFF/IT">TIFF/IT</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Others</th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/APNG" title="APNG">APNG</a></li> <li><a href="/wiki/AV1" title="AV1">AV1</a></li> <li><a href="/wiki/AVIF" title="AVIF">AVIF</a></li> <li><a href="/wiki/Better_Portable_Graphics" title="Better Portable Graphics">BPG</a></li> <li><a href="/wiki/DjVu" title="DjVu">DjVu</a></li> <li><a href="/wiki/OpenEXR" title="OpenEXR">EXR</a></li> <li><a href="/wiki/Free_Lossless_Image_Format" title="Free Lossless Image Format">FLIF</a></li> <li><a href="/wiki/ICER_(file_format)" title="ICER (file format)">ICER</a></li> <li><a href="/wiki/Multiple-image_Network_Graphics" title="Multiple-image Network Graphics">MNG</a></li> <li><a href="/wiki/Progressive_Graphics_File" title="Progressive Graphics File">PGF</a></li> <li><a href="/wiki/QOI_(image_format)" title="QOI (image format)">QOI</a></li> <li><a href="/wiki/QuickTime_VR" title="QuickTime VR">QTVR</a></li> <li><a href="/wiki/Wireless_Application_Protocol_Bitmap_Format" title="Wireless Application Protocol Bitmap Format">WBMP</a></li> <li><a href="/wiki/WebP" title="WebP">WebP</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Digital_container_format" class="mw-redirect" title="Digital container format">Containers</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/International_Organization_for_Standardization" title="International Organization for Standardization">ISO</a>, <a href="/wiki/International_Electrotechnical_Commission" title="International Electrotechnical Commission">IEC</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/MPEG_elementary_stream" title="MPEG elementary stream">MPEG-ES</a> <ul><li><a href="/wiki/Packetized_elementary_stream" title="Packetized elementary stream">MPEG-PES</a></li></ul></li> <li><a href="/wiki/MPEG_program_stream" title="MPEG program stream">MPEG-PS</a></li> <li><a href="/wiki/MPEG_transport_stream" title="MPEG transport stream">MPEG-TS</a></li> <li><a href="/wiki/ISO/IEC_base_media_file_format" class="mw-redirect" title="ISO/IEC base media file format">ISO/IEC base media file format</a></li> <li><a href="/wiki/MPEG-4_Part_14" class="mw-redirect" title="MPEG-4 Part 14">MPEG-4 Part 14</a> (MP4)</li> <li><a href="/wiki/Motion_JPEG_2000" title="Motion JPEG 2000">Motion JPEG 2000</a></li> <li><a href="/wiki/MPEG-21" title="MPEG-21">MPEG-21 Part 9</a></li> <li><a href="/wiki/MPEG_media_transport" title="MPEG media transport">MPEG media transport</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/ITU-T" title="ITU-T">ITU-T</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/MPEG-2#Systems" title="MPEG-2">H.222.0</a></li> <li><a href="/wiki/Motion_JPEG_2000" title="Motion JPEG 2000">T.802</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/Internet_Engineering_Task_Force" title="Internet Engineering Task Force">IETF</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Real-time_Transport_Protocol" title="Real-time Transport Protocol">RTP</a></li> <li><a href="/wiki/Ogg" title="Ogg">Ogg</a></li> <li><a href="/wiki/Matroska" title="Matroska">Matroska</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em"><a href="/wiki/Society_of_Motion_Picture_and_Television_Engineers" title="Society of Motion Picture and Television Engineers">SMPTE</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/General_Exchange_Format" title="General Exchange Format">GXF</a></li> <li><a href="/wiki/Material_Exchange_Format" title="Material Exchange Format">MXF</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:5em">Others</th><td class="navbox-list-with-group navbox-list navbox-odd" style="padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/3GP_and_3G2" title="3GP and 3G2">3GP and 3G2</a></li> <li><a href="/wiki/AMV_video_format" title="AMV video format">AMV</a></li> <li><a href="/wiki/Advanced_Systems_Format" title="Advanced Systems Format">ASF</a></li> <li><a href="/wiki/Audio_Interchange_File_Format" title="Audio Interchange File Format">AIFF</a></li> <li><a href="/wiki/Audio_Video_Interleave" title="Audio Video Interleave">AVI</a></li> <li><a href="/wiki/Au_file_format" title="Au file format">AU</a></li> <li><a href="/wiki/Better_Portable_Graphics" title="Better Portable Graphics">BPG</a></li> <li><a href="/wiki/Bink_Video" title="Bink Video">Bink</a> <ul><li><a href="/wiki/Smacker_video" title="Smacker video">Smacker</a></li></ul></li> <li><a class="mw-selflink selflink">BMP</a></li> <li><a href="/wiki/DivX#DivX_Media_Format_(DMF)" title="DivX">DivX Media Format</a></li> <li><a href="/wiki/Enhanced_VOB" title="Enhanced VOB">EVO</a></li> <li><a href="/wiki/Flash_Video" title="Flash Video">Flash Video</a></li> <li><a href="/wiki/High_Efficiency_Image_File_Format" title="High Efficiency Image File Format">HEIF</a></li> <li><a href="/wiki/Interchange_File_Format" title="Interchange File Format">IFF</a></li> <li><a href="/wiki/.m2ts" title=".m2ts">M2TS</a></li> <li><a href="/wiki/Matroska" title="Matroska">Matroska</a> <ul><li><a href="/wiki/WebM" title="WebM">WebM</a></li></ul></li> <li><a href="/wiki/QuickTime_File_Format" title="QuickTime File Format">QuickTime File Format</a></li> <li><a href="/wiki/RatDVD" title="RatDVD">RatDVD</a></li> <li><a href="/wiki/RealMedia" title="RealMedia">RealMedia</a></li> <li><a href="/wiki/Resource_Interchange_File_Format" title="Resource Interchange File Format">RIFF</a> <ul><li><a href="/wiki/WAV" title="WAV">WAV</a></li></ul></li> <li><a href="/wiki/MOD_and_TOD" title="MOD and TOD">MOD and TOD</a></li> <li><a href="/wiki/VOB" title="VOB">VOB, IFO and BUP</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Collaborations</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/NETVC" title="NETVC">NETVC</a></li> <li><a href="/wiki/MPEG_LA" title="MPEG LA">MPEG LA</a></li> <li><a href="/wiki/Alliance_for_Open_Media" title="Alliance for Open Media">Alliance for Open Media</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Data_compression" title="Data compression">Methods</a></th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Entropy_encoding" class="mw-redirect" title="Entropy encoding">Entropy</a> <ul><li><a href="/wiki/Arithmetic_coding" title="Arithmetic coding">Arithmetic</a></li> <li><a href="/wiki/Huffman_coding" title="Huffman coding">Huffman</a></li> <li><a href="/wiki/Modified_Huffman_coding" title="Modified Huffman coding">Modified</a></li></ul></li> <li><a href="/wiki/Linear_predictive_coding" title="Linear predictive coding">LPC</a> <ul><li><a href="/wiki/Algebraic_code-excited_linear_prediction" title="Algebraic code-excited linear prediction">ACELP</a></li> <li><a href="/wiki/Code-excited_linear_prediction" title="Code-excited linear prediction">CELP</a></li> <li><a href="/wiki/Line_spectral_pairs" title="Line spectral pairs">LSP</a></li> <li><a href="/wiki/Warped_linear_predictive_coding" title="Warped linear predictive coding">WLPC</a></li></ul></li> <li><a href="/wiki/Lossless_compression" title="Lossless compression">Lossless</a></li> <li><a href="/wiki/Lossy_compression" title="Lossy compression">Lossy</a></li> <li><a href="/wiki/LZ77_and_LZ78" title="LZ77 and LZ78">LZ</a> <ul><li><a href="/wiki/DEFLATE" class="mw-redirect" title="DEFLATE">DEFLATE</a></li> <li><a href="/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch" title="Lempel–Ziv–Welch">LZW</a></li></ul></li> <li><a href="/wiki/Pulse-code_modulation" title="Pulse-code modulation">PCM</a> <ul><li><a href="/wiki/A-law_algorithm" title="A-law algorithm">A-law</a></li> <li><a href="/wiki/%CE%9C-law_algorithm" title="Μ-law algorithm">µ-law</a></li> <li><a href="/wiki/Adaptive_differential_pulse-code_modulation" title="Adaptive differential pulse-code modulation">ADPCM</a></li> <li><a href="/wiki/Differential_pulse-code_modulation" title="Differential pulse-code modulation">DPCM</a></li></ul></li> <li><a href="/wiki/Transform_coding" title="Transform coding">Transforms</a> <ul><li><a href="/wiki/Discrete_cosine_transform" title="Discrete cosine transform">DCT</a></li> <li><a href="/wiki/Fast_Fourier_transform" title="Fast Fourier transform">FFT</a></li> <li><a href="/wiki/Modified_discrete_cosine_transform" title="Modified discrete cosine transform">MDCT</a></li> <li><a href="/wiki/Wavelet" title="Wavelet">Wavelet</a> <ul><li><a href="/wiki/Daubechies_wavelet" title="Daubechies wavelet">Daubechies</a></li> <li><a href="/wiki/Discrete_wavelet_transform" title="Discrete wavelet transform">DWT</a></li></ul></li></ul></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Lists</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Comparison_of_audio_coding_formats" title="Comparison of audio coding formats">Comparison of audio coding formats</a></li> <li><a href="/wiki/Comparison_of_video_codecs" title="Comparison of video codecs">Comparison of video codecs</a></li> <li><a href="/wiki/List_of_codecs" title="List of codecs">List of codecs</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>See <a href="/wiki/Template:Compression_methods" title="Template:Compression methods">Compression methods</a> for techniques and <a href="/wiki/Template:Compression_software" title="Template:Compression software">Compression software</a> for codecs</div></td></tr></tbody></table></div> <div class="navbox-styles"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1236075235"></div><div role="navigation" class="navbox" aria-labelledby="Graphics_file_formats" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1239400231"><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:Graphics_file_formats" title="Template:Graphics file formats"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:Graphics_file_formats" title="Template talk:Graphics file formats"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:Graphics_file_formats" title="Special:EditPage/Template:Graphics file formats"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Graphics_file_formats" style="font-size:114%;margin:0 4em"><a href="/wiki/Image_file_format" title="Image file format">Graphics file formats</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Raster_graphics" title="Raster graphics">Raster</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/ANI_(file_format)" title="ANI (file format)"> ANI</a></li> <li><a href="/wiki/ANIM" title="ANIM">ANIM</a></li> <li><a href="/wiki/APNG" title="APNG">APNG</a></li> <li><a href="/wiki/ART_image_file_format" title="ART image file format"> ART</a></li> <li><a href="/wiki/AVIF" title="AVIF">AVIF</a></li> <li><a class="mw-selflink selflink"> BMP</a></li> <li><a href="/wiki/Better_Portable_Graphics" title="Better Portable Graphics"> BPG</a></li> <li><a href="/wiki/BSAVE" title="BSAVE"> BSAVE</a></li> <li><a href="/wiki/CALS_Raster_file_format" title="CALS Raster file format"> CAL</a></li> <li><a href="/wiki/Cineon" title="Cineon"> CIN</a></li> <li><a href="/wiki/Cartesian_Perceptual_Compression" title="Cartesian Perceptual Compression"> CPC</a></li> <li><a href="/wiki/CPT_(file_format)" title="CPT (file format)"> CPT</a></li> <li><a href="/wiki/DirectDraw_Surface" title="DirectDraw Surface"> DDS</a></li> <li><a href="/wiki/Digital_Picture_Exchange" title="Digital Picture Exchange"> DPX</a></li> <li><a href="/wiki/ECW_(file_format)" title="ECW (file format)"> ECW</a></li> <li><a href="/wiki/OpenEXR" title="OpenEXR"> EXR</a></li> <li><a href="/wiki/FITS" title="FITS">FITS</a></li> <li><a href="/wiki/FLIC_(file_format)" title="FLIC (file format)"> FLIC</a></li> <li><a href="/wiki/Free_Lossless_Image_Format" title="Free Lossless Image Format"> FLIF</a></li> <li><a href="/wiki/FlashPix" title="FlashPix"> FPX</a></li> <li><a href="/wiki/GIF" title="GIF">GIF</a></li> <li><a href="/wiki/HDRi_(data_format)" class="mw-redirect" title="HDRi (data format)"> HDRi</a></li> <li><a href="/wiki/High_Efficiency_Video_Coding#Main_Still_Picture" title="High Efficiency Video Coding"> HEVC</a></li> <li><a href="/wiki/ICER_(file_format)" title="ICER (file format)">ICER</a></li> <li><a href="/wiki/Apple_Icon_Image_format" title="Apple Icon Image format"> ICNS</a></li> <li><a href="/wiki/ICO_(file_format)" title="ICO (file format)"> ICO / CUR</a></li> <li><a href="/wiki/Image_Cytometry_Standard" title="Image Cytometry Standard"> ICS</a></li> <li><a href="/wiki/ILBM" title="ILBM">ILBM</a></li> <li><a href="/wiki/JBIG" title="JBIG">JBIG</a></li> <li><a href="/wiki/JBIG2" title="JBIG2">JBIG2</a></li> <li><a href="/wiki/JPEG_Network_Graphics" title="JPEG Network Graphics"> JNG</a></li> <li><a href="/wiki/JPEG" title="JPEG">JPEG</a></li> <li><a href="/wiki/Lossless_JPEG#JPEG-LS" title="Lossless JPEG"> JPEG-LS</a></li> <li><a href="/wiki/JPEG_2000" title="JPEG 2000">JPEG 2000</a></li> <li><a href="/wiki/JPEG_XL" title="JPEG XL">JPEG XL</a></li> <li><a href="/wiki/JPEG_XR" title="JPEG XR">JPEG XR</a></li> <li><a href="/wiki/JPEG_XS" title="JPEG XS">JPEG XS</a></li> <li><a href="/wiki/JPEG_XT" title="JPEG XT">JPEG XT</a> <ul><li><a href="/wiki/JPEG-HDR" class="mw-redirect" title="JPEG-HDR">JPEG-HDR</a></li></ul></li> <li><a href="/wiki/Krita" title="Krita"> KRA</a></li> <li><a href="/wiki/Multiple-image_Network_Graphics" title="Multiple-image Network Graphics"> MNG</a></li> <li><a href="/wiki/Magick_Image_File_Format" title="Magick Image File Format"> MIFF</a></li> <li><a href="/wiki/Nearly_raw_raster_data" class="mw-redirect" title="Nearly raw raster data"> NRRD</a></li> <li><a href="/wiki/OpenRaster" title="OpenRaster"> ORA</a></li> <li><a href="/wiki/Netpbm#PAM_graphics_format" title="Netpbm"> PAM</a></li> <li><a href="/wiki/Netpbm" title="Netpbm"> PBM / PGM / PPM / PNM</a></li> <li><a href="/wiki/PCX" title="PCX">PCX</a></li> <li><a href="/wiki/Progressive_Graphics_File" title="Progressive Graphics File"> PGF</a></li> <li><a href="/wiki/PICtor_PIC_image_format" title="PICtor PIC image format"> PICtor</a></li> <li><a href="/wiki/PNG" title="PNG">PNG</a></li> <li><a href="/wiki/Adobe_Photoshop#PSD" title="Adobe Photoshop"> PSD / PSB</a></li> <li><a href="/wiki/PaintShop_Pro" title="PaintShop Pro"> PSP</a></li> <li><a href="/wiki/QOI_(image_format)" title="QOI (image format)"> QOI</a></li> <li><a href="/wiki/QuickTime_VR" title="QuickTime VR"> QTVR</a></li> <li><a href="/wiki/Sun_Raster" title="Sun Raster"> RAS</a></li> <li><a href="/wiki/RGBE_image_format" title="RGBE image format"> RGBE</a> <ul><li><a href="/wiki/Logluv_TIFF" title="Logluv TIFF">Logluv TIFF</a></li></ul></li> <li><a href="/wiki/Silicon_Graphics_Image" title="Silicon Graphics Image"> SGI</a></li> <li><a href="/wiki/Truevision_TGA" title="Truevision TGA"> TGA</a></li> <li><a href="/wiki/Tag_Image_File_Format" class="mw-redirect" title="Tag Image File Format"> TIFF</a> <ul><li><a href="/wiki/TIFF/EP" title="TIFF/EP">TIFF/EP</a></li> <li><a href="/wiki/Tag_Image_File_Format#TIFF/IT" class="mw-redirect" title="Tag Image File Format"> TIFF/IT</a></li></ul></li> <li><a href="/wiki/Ulead_PhotoImpact" title="Ulead PhotoImpact"> UFO / UFP</a></li> <li><a href="/wiki/Wireless_Application_Protocol_Bitmap_Format" title="Wireless Application Protocol Bitmap Format"> WBMP</a></li> <li><a href="/wiki/WebP" title="WebP">WebP</a></li> <li><a href="/wiki/X_BitMap" title="X BitMap"> XBM</a></li> <li><a href="/wiki/XCF_(file_format)" title="XCF (file format)"> XCF</a></li> <li><a href="/wiki/X_PixMap" title="X PixMap"> XPM</a></li> <li><a href="/wiki/Xwd" title="Xwd"> XWD</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Raw_image_format" title="Raw image format">Raw</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Camera_Image_File_Format" title="Camera Image File Format"> CIFF</a></li> <li><a href="/wiki/Digital_Negative" title="Digital Negative"> DNG</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Vector_graphics" title="Vector graphics">Vector</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Adobe_Illustrator_Artwork" class="mw-redirect" title="Adobe Illustrator Artwork"> AI</a></li> <li><a href="/wiki/CorelDRAW#CDR_file_format" title="CorelDRAW"> CDR</a></li> <li><a href="/wiki/Computer_Graphics_Metafile" title="Computer Graphics Metafile"> CGM</a></li> <li><a href="/wiki/AutoCAD_DXF" title="AutoCAD DXF"> DXF</a></li> <li><a href="/wiki/Enhanced_Metafile" class="mw-redirect" title="Enhanced Metafile"> EMF</a></li> <li><a href="/wiki/EMF%2B" class="mw-redirect" title="EMF+">EMF+</a></li> <li><a href="/wiki/Gerber_format" title="Gerber format"> Gerber</a></li> <li><a href="/wiki/Haiku_Vector_Icon_Format" class="mw-redirect" title="Haiku Vector Icon Format"> HVIF</a></li> <li><a href="/wiki/IGES" title="IGES">IGES</a></li> <li><a href="/wiki/Precision_Graphics_Markup_Language" title="Precision Graphics Markup Language"> PGML</a></li> <li><a href="/wiki/Scalable_Vector_Graphics" class="mw-redirect" title="Scalable Vector Graphics"> SVG</a></li> <li><a href="/wiki/Vector_Markup_Language" title="Vector Markup Language"> VML</a></li> <li><a href="/wiki/Windows_Metafile" title="Windows Metafile"> WMF</a></li> <li><a href="/wiki/Xar_(graphics)" title="Xar (graphics)"> Xar</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Image_file_format#Compound_formats" title="Image file format">Compound</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Computable_Document_Format" title="Computable Document Format"> CDF</a></li> <li><a href="/wiki/DjVu" title="DjVu">DjVu</a></li> <li><a href="/wiki/Encapsulated_PostScript" title="Encapsulated PostScript"> EPS</a></li> <li><a href="/wiki/MODCA" title="MODCA">MODCA</a></li> <li><a href="/wiki/PDF" title="PDF">PDF</a></li> <li><a href="/wiki/PICT" title="PICT">PICT</a></li> <li><a href="/wiki/PostScript" title="PostScript"> PS</a></li> <li><a href="/wiki/SWF" title="SWF">SWF</a></li> <li><a href="/wiki/Extensible_Application_Markup_Language" title="Extensible Application Markup Language"> XAML</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Metadata" title="Metadata">Metadata</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Exif" title="Exif">Exchangeable image file format (Exif)</a></li> <li><a href="/wiki/International_Press_Telecommunications_Council#Photo_metadata" title="International Press Telecommunications Council">International Press Telecommunications Council §&#160;Photo metadata</a></li> <li><a href="/wiki/Extensible_Metadata_Platform" title="Extensible Metadata Platform">Extensible Metadata Platform (XMP)</a></li> <li><a href="/wiki/GIF#Metadata" title="GIF">GIF §&#160;Metadata</a></li> <li><a href="/wiki/Steganography" title="Steganography">Steganography</a></li></ul> </div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div> <ul><li><b><span class="noviewer" typeof="mw:File"><span title="Category"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/16px-Symbol_category_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/23px-Symbol_category_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/9/96/Symbol_category_class.svg/31px-Symbol_category_class.svg.png 2x" data-file-width="180" data-file-height="185" /></span></span> <a href="/wiki/Category:Graphics_file_formats" title="Category:Graphics file formats">Category</a></b></li> <li><b><span class="noviewer" typeof="mw:File"><a href="/wiki/File:Symbol_na_class.svg" class="mw-file-description" title="Non-article page"><img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/6/6a/Symbol_na_class.svg/16px-Symbol_na_class.svg.png" decoding="async" width="16" height="16" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/en/thumb/6/6a/Symbol_na_class.svg/23px-Symbol_na_class.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/6/6a/Symbol_na_class.svg/31px-Symbol_na_class.svg.png 2x" data-file-width="180" data-file-height="185" /></a></span> <a href="/wiki/Comparison_of_graphics_file_formats" title="Comparison of graphics file formats">Comparison</a></b></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐f69cdc8f6‐598ft Cached time: 20241122140932 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.805 seconds Real time usage: 1.033 seconds Preprocessor visited node count: 4665/1000000 Post‐expand include size: 152602/2097152 bytes Template argument size: 6857/2097152 bytes Highest expansion depth: 18/100 Expensive parser function count: 4/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 100462/5000000 bytes Lua time usage: 0.388/10.000 seconds Lua memory usage: 5685905/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 771.886 1 -total 35.35% 272.837 1 Template:Reflist 20.77% 160.354 6 Template:Navbox 19.18% 148.052 1 Template:Cite_IETF 17.09% 131.894 1 Template:Compression_formats 13.56% 104.669 1 Template:Short_description 7.29% 56.235 2 Template:Pagetype 7.03% 54.295 1 Template:Infobox_file_format 6.67% 51.502 12 Template:Cite_web 6.40% 49.401 1 Template:Infobox --> <!-- Saved in parser cache with key enwiki:pcache:250336:|#|:idhash:canonical and timestamp 20241122140932 and revision id 1252365614. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=BMP_file_format&amp;oldid=1252365614">https://en.wikipedia.org/w/index.php?title=BMP_file_format&amp;oldid=1252365614</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:Raster_graphics_file_formats" title="Category:Raster graphics file formats">Raster graphics file formats</a></li><li><a href="/wiki/Category:Microsoft_Windows_multimedia_technology" title="Category:Microsoft Windows multimedia technology">Microsoft Windows multimedia technology</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Webarchive_template_wayback_links" title="Category:Webarchive template wayback links">Webarchive template wayback links</a></li><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_matches_Wikidata" title="Category:Short description matches Wikidata">Short description matches Wikidata</a></li><li><a href="/wiki/Category:Articles_containing_potentially_dated_statements_from_2014" title="Category:Articles containing potentially dated statements from 2014">Articles containing potentially dated statements from 2014</a></li><li><a href="/wiki/Category:All_articles_containing_potentially_dated_statements" title="Category:All articles containing potentially dated statements">All articles containing potentially dated statements</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 21 October 2024, at 00:59<span class="anonymous-show">&#160;(UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=BMP_file_format&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-f69cdc8f6-dtnhv","wgBackendResponseTime":160,"wgPageParseReport":{"limitreport":{"cputime":"0.805","walltime":"1.033","ppvisitednodes":{"value":4665,"limit":1000000},"postexpandincludesize":{"value":152602,"limit":2097152},"templateargumentsize":{"value":6857,"limit":2097152},"expansiondepth":{"value":18,"limit":100},"expensivefunctioncount":{"value":4,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":100462,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 771.886 1 -total"," 35.35% 272.837 1 Template:Reflist"," 20.77% 160.354 6 Template:Navbox"," 19.18% 148.052 1 Template:Cite_IETF"," 17.09% 131.894 1 Template:Compression_formats"," 13.56% 104.669 1 Template:Short_description"," 7.29% 56.235 2 Template:Pagetype"," 7.03% 54.295 1 Template:Infobox_file_format"," 6.67% 51.502 12 Template:Cite_web"," 6.40% 49.401 1 Template:Infobox"]},"scribunto":{"limitreport-timeusage":{"value":"0.388","limit":"10.000"},"limitreport-memusage":{"value":5685905,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-f69cdc8f6-598ft","timestamp":"20241122140932","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"BMP file format","url":"https:\/\/en.wikipedia.org\/wiki\/BMP_file_format","sameAs":"http:\/\/www.wikidata.org\/entity\/Q192869","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q192869","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2003-06-20T19:10:54Z","dateModified":"2024-10-21T00:59:17Z","headline":"Windows Bitmap image file format family"}</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10