michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkNinePatch_DEFINED michael@0: #define SkNinePatch_DEFINED michael@0: michael@0: #include "SkRect.h" michael@0: #include "SkRegion.h" michael@0: michael@0: class SkBitmap; michael@0: class SkCanvas; michael@0: class SkPaint; michael@0: michael@0: class SkNinePatch { michael@0: public: michael@0: static void DrawNine(SkCanvas* canvas, const SkRect& dst, michael@0: const SkBitmap& bitmap, const SkIRect& margins, michael@0: const SkPaint* paint = NULL); michael@0: michael@0: static void DrawMesh(SkCanvas* canvas, const SkRect& dst, michael@0: const SkBitmap& bitmap, michael@0: const int32_t xDivs[], int numXDivs, michael@0: const int32_t yDivs[], int numYDivs, michael@0: const SkPaint* paint = NULL); michael@0: }; michael@0: michael@0: #endif