2011-07-28 14:26:00 +00:00
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
/*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Copyright 2006 The Android Open Source Project
|
2008-12-17 15:59:43 +00:00
|
|
|
*
|
2011-07-28 14:26:00 +00:00
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2008-12-17 15:59:43 +00:00
|
|
|
*/
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
#ifndef SkNinePatch_DEFINED
|
|
|
|
#define SkNinePatch_DEFINED
|
|
|
|
|
|
|
|
#include "SkRect.h"
|
|
|
|
#include "SkRegion.h"
|
|
|
|
|
|
|
|
class SkBitmap;
|
|
|
|
class SkCanvas;
|
|
|
|
class SkPaint;
|
|
|
|
|
|
|
|
class SkNinePatch {
|
|
|
|
public:
|
|
|
|
static void DrawNine(SkCanvas* canvas, const SkRect& dst,
|
|
|
|
const SkBitmap& bitmap, const SkIRect& margins,
|
|
|
|
const SkPaint* paint = NULL);
|
2012-08-23 18:09:54 +00:00
|
|
|
|
2008-12-17 15:59:43 +00:00
|
|
|
static void DrawMesh(SkCanvas* canvas, const SkRect& dst,
|
|
|
|
const SkBitmap& bitmap,
|
|
|
|
const int32_t xDivs[], int numXDivs,
|
|
|
|
const int32_t yDivs[], int numYDivs,
|
|
|
|
const SkPaint* paint = NULL);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|