<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ADirectives%3AINCBMP</id>
	<title>Z80:Directives:INCBMP - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://learn.cemetech.net/index.php?action=history&amp;feed=atom&amp;title=Z80%3ADirectives%3AINCBMP"/>
	<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Directives:INCBMP&amp;action=history"/>
	<updated>2026-06-01T08:05:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>http://learn.cemetech.net/index.php?title=Z80:Directives:INCBMP&amp;diff=188&amp;oldid=prev</id>
		<title>Maintenance script: Initial automated import</title>
		<link rel="alternate" type="text/html" href="http://learn.cemetech.net/index.php?title=Z80:Directives:INCBMP&amp;diff=188&amp;oldid=prev"/>
		<updated>2016-02-05T16:58:38Z</updated>

		<summary type="html">&lt;p&gt;Initial automated import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Loads a monochrome bitmap (BMP, PNG, GIF, JPEG) and include it directly into the program.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
    ;Load test.gif;&lt;br /&gt;
    ; force width to 32 and apply RLE.&lt;br /&gt;
    .incbmp &amp;quot;test.gif&amp;quot;, rle, width = 32&lt;br /&gt;
&lt;br /&gt;
== Uses ==&lt;br /&gt;
&lt;br /&gt;
The bitmap is padded with 0s to make it a multiple of 8 bits wide, and a 1 corresponds to a black pixel.&lt;br /&gt;
&lt;br /&gt;
Any pixel darker than the threshold (defaults to 127) is considered black, any pixel brighter is white.&lt;br /&gt;
&lt;br /&gt;
Specifying the flag RLE compresses the data after conversion.&lt;br /&gt;
&lt;br /&gt;
Using the width/height flags forces the bitmap data to a particular size; note that the image is not scaled or repositioned in any way (merely aligned top-left and cropped to the final size).&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
&lt;br /&gt;
[[Z80:Directives:INCBIN|incbin]]&lt;br /&gt;
[[Z80:Directives:INCTEXT|inctext]]&lt;br /&gt;
&lt;br /&gt;
{{lowercase}}&lt;br /&gt;
[[Category:Z80 Assembly]]&lt;br /&gt;
[[Category:Z80 Heaven]]&lt;br /&gt;
[[Category:Z80 Directives]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>