diff --git a/docs/SkImage_Reference.bmh b/docs/SkImage_Reference.bmh index 3cdcd0513b..03dcd16e02 100644 --- a/docs/SkImage_Reference.bmh +++ b/docs/SkImage_Reference.bmh @@ -2117,7 +2117,8 @@ Bitmap write did not succeed. #Return true if Bitmap was created ## -#Example +#NoExample +#Bug 8051 #Image 4 #Platform gpu SkBitmap bitImage; diff --git a/site/user/api/SkImage_Reference.md b/site/user/api/SkImage_Reference.md index 6b8e24d91a..59ea10bfdc 100644 --- a/site/user/api/SkImage_Reference.md +++ b/site/user/api/SkImage_Reference.md @@ -2619,10 +2619,6 @@ Returns true if Bitmap is stored in Bitmap was created -### Example - -
- ### See Also MakeRasterData makeRasterImage makeNonTextureImage diff --git a/site/user/api/catalog.htm b/site/user/api/catalog.htm index a139950d15..fb58fbbb2b 100644 --- a/site/user/api/catalog.htm +++ b/site/user/api/catalog.htm @@ -5340,14 +5340,6 @@ "hash": "1b9f1f05026ceb14ccb6926a13cdaa83", "file": "SkImage_Reference", "name": "SkImage::alphaType" -}, - "SkImage_asLegacyBitmap": { - "code": "void draw(SkCanvas* canvas) {\n SkBitmap bitImage;\n if (image->asLegacyBitmap(&bitImage, SkImage::kRO_LegacyBitmapMode)) {\n canvas->drawBitmap(bitImage, 0, 0);\n }\n GrContext* grContext = canvas->getGrContext();\n if (!grContext) {\n return;\n }\n sk_sp textureImage(SkImage::MakeFromTexture(grContext, backEndTexture,\n kTopLeft_GrSurfaceOrigin, kN32_SkColorType, kOpaque_SkAlphaType,\n nullptr));\n canvas->drawImage(textureImage, 45, 45);\n if (textureImage->asLegacyBitmap(&bitImage, SkImage::kRO_LegacyBitmapMode)) {\n canvas->drawBitmap(bitImage, 90, 90);\n }\n}", - "width": 256, - "height": 256, - "hash": "5d88bd87c3585a5dfeca39c2ebd08e52", - "file": "SkImage_Reference", - "name": "SkImage::asLegacyBitmap" }, "SkImage_bounds": { "code": "void draw(SkCanvas* canvas) {\n SkIRect bounds = image->bounds();\n for (int x : { 0, bounds.width() } ) {\n for (int y : { 0, bounds.height() } ) {\n canvas->drawImage(image, x, y);\n }\n }\n}",