1 2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 3<html><head><title>Python: module telemetry.internal.image_processing._bitmap</title> 4<meta charset="utf-8"> 5</head><body bgcolor="#f0f0f8"> 6 7<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> 8<tr bgcolor="#7799ee"> 9<td valign=bottom> <br> 10<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry.internal.html"><font color="#ffffff">internal</font></a>.<a href="telemetry.internal.image_processing.html"><font color="#ffffff">image_processing</font></a>._bitmap</strong></big></big></font></td 11><td align=right valign=bottom 12><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="../telemetry/internal/image_processing/_bitmap.py">telemetry/internal/image_processing/_bitmap.py</a></font></td></tr></table> 13 <p><tt><a href="#Bitmap">Bitmap</a> is a basic wrapper for image pixels. It includes some basic processing<br> 14tools: crop, find bounding box of a color and compute histogram of color values.</tt></p> 15<p> 16<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 17<tr bgcolor="#aa55cc"> 18<td colspan=3 valign=bottom> <br> 19<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> 20 21<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> 22<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="array.html">array</a><br> 23<a href="telemetry.internal.util.binary_manager.html">telemetry.internal.util.binary_manager</a><br> 24<a href="cStringIO.html">cStringIO</a><br> 25</td><td width="25%" valign=top><a href="telemetry.util.color_histogram.html">telemetry.util.color_histogram</a><br> 26<a href="telemetry.core.platform.html">telemetry.core.platform</a><br> 27<a href="png.html">png</a><br> 28</td><td width="25%" valign=top><a href="telemetry.util.rgba_color.html">telemetry.util.rgba_color</a><br> 29<a href="struct.html">struct</a><br> 30<a href="subprocess.html">subprocess</a><br> 31</td><td width="25%" valign=top></td></tr></table></td></tr></table><p> 32<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 33<tr bgcolor="#ee77aa"> 34<td colspan=3 valign=bottom> <br> 35<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> 36 37<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> 38<td width="100%"><dl> 39<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> 40</font></dt><dd> 41<dl> 42<dt><font face="helvetica, arial"><a href="telemetry.internal.image_processing._bitmap.html#Bitmap">Bitmap</a> 43</font></dt></dl> 44</dd> 45</dl> 46 <p> 47<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> 48<tr bgcolor="#ffc8d8"> 49<td colspan=3 valign=bottom> <br> 50<font color="#000000" face="helvetica, arial"><a name="Bitmap">class <strong>Bitmap</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> 51 52<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> 53<td colspan=2><tt>Utilities for parsing and inspecting a bitmap.<br> </tt></td></tr> 54<tr><td> </td> 55<td width="100%">Methods defined here:<br> 56<dl><dt><a name="Bitmap-ColorHistogram"><strong>ColorHistogram</strong></a>(self, ignore_color<font color="#909090">=None</font>, tolerance<font color="#909090">=0</font>)</dt></dl> 57 58<dl><dt><a name="Bitmap-Crop"><strong>Crop</strong></a>(self, left, top, width, height)</dt></dl> 59 60<dl><dt><a name="Bitmap-Diff"><strong>Diff</strong></a>(self, other)</dt></dl> 61 62<dl><dt><a name="Bitmap-GetBoundingBox"><strong>GetBoundingBox</strong></a>(self, color, tolerance<font color="#909090">=0</font>)</dt></dl> 63 64<dl><dt><a name="Bitmap-GetPixelColor"><strong>GetPixelColor</strong></a>(self, x, y)</dt></dl> 65 66<dl><dt><a name="Bitmap-IsEqual"><strong>IsEqual</strong></a>(self, other, tolerance<font color="#909090">=0</font>)</dt></dl> 67 68<dl><dt><a name="Bitmap-WritePngFile"><strong>WritePngFile</strong></a>(self, path)</dt></dl> 69 70<dl><dt><a name="Bitmap-__init__"><strong>__init__</strong></a>(self, bpp, width, height, pixels, metadata<font color="#909090">=None</font>)</dt></dl> 71 72<hr> 73Static methods defined here:<br> 74<dl><dt><a name="Bitmap-FromPng"><strong>FromPng</strong></a>(png_data)</dt></dl> 75 76<dl><dt><a name="Bitmap-FromPngFile"><strong>FromPngFile</strong></a>(path)</dt></dl> 77 78<hr> 79Data descriptors defined here:<br> 80<dl><dt><strong>__dict__</strong></dt> 81<dd><tt>dictionary for instance variables (if defined)</tt></dd> 82</dl> 83<dl><dt><strong>__weakref__</strong></dt> 84<dd><tt>list of weak references to the object (if defined)</tt></dd> 85</dl> 86<dl><dt><strong>bpp</strong></dt> 87</dl> 88<dl><dt><strong>height</strong></dt> 89</dl> 90<dl><dt><strong>metadata</strong></dt> 91</dl> 92<dl><dt><strong>pixels</strong></dt> 93</dl> 94<dl><dt><strong>width</strong></dt> 95</dl> 96</td></tr></table></td></tr></table> 97</body></html>