{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# ipythonblocks.ImageGrid"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To learn more about `ipythonblocks` visit the homepage at [https://github.com/jiffyclub/ipythonblocks](https://github.com/jiffyclub/ipythonblocks).\n",
"\n",
"`ImageGrid` is a class that imitates image manipulation libraries like [PIL](http://www.pythonware.com/products/pil/).\n",
"Key differences from `BlockGrid` are:\n",
"\n",
"* Only 2D indexing is supported\n",
"* Indices are [column, row]\n",
"* Grid units are `Pixel` objects, which have `.x` (column) and `.y` (row) attributes\n",
"* Grid origin defaults to the lower-left corner, but can be set to the upper-left"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from ipythonblocks import ImageGrid"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"