---
title: "判断一个Bitmap图像是否是.9图"
author: "runfeel"
date: "2013-07-11T10:13:00Z"
tags: []
slug: "bitmap-9"
draft: false
lastmod: "2013-07-11T13:38:56Z"
id: 1903682
url: "https://runfeel.iteye.com/blog/1903682"
---

见BitmapFactory的源码中

byte\[] np = bm.getNinePatchChunk();  
final boolean isNinePatch = np != null && NinePatch.isNinePatchChunk(np);