| OLD | NEW |
| 1 /* | 1 /* |
| 2 * CAUTION: EXPERIMENTAL CODE | 2 * CAUTION: EXPERIMENTAL CODE |
| 3 * | 3 * |
| 4 * This code is not to be used and will not be supported | 4 * This code is not to be used and will not be supported |
| 5 * if it fails on you. DO NOT USE! | 5 * if it fails on you. DO NOT USE! |
| 6 * | 6 * |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef SkPathUtils_DEFINED | 9 #ifndef SkPathUtils_DEFINED |
| 10 #define SKPathUtils_DEFINED | 10 #define SkPathUtils_DEFINED |
| 11 | 11 |
| 12 #include "SkPath.h" | 12 #include "SkPath.h" |
| 13 | 13 |
| 14 /* | 14 /* |
| 15 * The following methods return the boundary path given a 1-bit bitmap, specifie
d | 15 * The following methods return the boundary path given a 1-bit bitmap, specifie
d |
| 16 * by width/height and stride. The bits are interpreted as 1 being "in" the path
, | 16 * by width/height and stride. The bits are interpreted as 1 being "in" the path
, |
| 17 * and 0 being "out". The bits are interpreted as MSB on the left, and LSB on th
e right. | 17 * and 0 being "out". The bits are interpreted as MSB on the left, and LSB on th
e right. |
| 18 */ | 18 */ |
| 19 | 19 |
| 20 class SK_API SkPathUtils { | 20 class SK_API SkPathUtils { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 This variation utilizes the SkRegion class to generate paths, adding | 31 This variation utilizes the SkRegion class to generate paths, adding |
| 32 each run of 1's to the SkRegion as an SkIRect. Upon parsing the entirety | 32 each run of 1's to the SkRegion as an SkIRect. Upon parsing the entirety |
| 33 of the binary the SkRegion is converted to a Path via getBoundaryPath(). | 33 of the binary the SkRegion is converted to a Path via getBoundaryPath(). |
| 34 */ | 34 */ |
| 35 static void BitsToPath_Region(SkPath* path, const char* bitmap, | 35 static void BitsToPath_Region(SkPath* path, const char* bitmap, |
| 36 int h, int w, int stride); | 36 int h, int w, int stride); |
| 37 | 37 |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 #endif | 40 #endif |
| OLD | NEW |