Home
last modified time | relevance | path

Searched refs:canvas (Results 1 – 25 of 369) sorted by relevance

12345678910>>...15

/expo/packages/expo-image-manipulator/build/
H A DExpoImageManipulator.web.js3 function getResults(canvas, options) { argument
15 uri = canvas.toDataURL();
19 width: canvas.width,
20 height: canvas.height,
30 canvas.width = imageSource.naturalWidth;
32 const context = getContext(canvas);
34 resolve(canvas);
36 imageSource.onerror = () => reject(canvas);
48 return crop(canvas, action.crop);
54 return flip(canvas, action.flip);
[all …]
/expo/packages/expo-gl/build/
H A DGLView.web.js39 if (!canvas) {
53 const { canvas } = gl;
69 width: canvas.width,
70 height: canvas.height,
74 canvas; field in GLView
82 canvas.width = width * scale;
110 if (this.canvas) {
153 if (this.canvas) {
162 setCanvasRef = (canvas) => {
163 this.canvas = canvas;
[all …]
H A DCanvas.js31 const canvas = _canvasRef.current;
33 if (typeof HTMLCanvasElement !== 'undefined' && canvas instanceof HTMLCanvasElement) {
36 canvas.style.width = `${size.width}px`;
37 canvas.style.height = `${size.height}px`;
38 canvas.width = size.width * scale;
39 canvas.height = size.height * scale;
71 const canvas = _canvasRef.current; constant
72 if (canvas) {
75 setRef(props.canvasRef, canvas);
/expo/packages/expo-image-manipulator/src/
H A DExpoImageManipulator.web.ts16 uri = canvas.toDataURL();
20 width: canvas.width,
21 height: canvas.height,
32 canvas.width = imageSource.naturalWidth;
35 const context = getContext(canvas);
38 resolve(canvas);
58 return crop(canvas, action.crop);
60 return resize(canvas, action.resize);
62 return flip(canvas, action.flip);
64 return rotate(canvas, action.rotate);
[all …]
/expo/packages/expo-image-manipulator/src/actions/
H A DFlipAction.web.ts4 export default (canvas: HTMLCanvasElement, flip: ActionFlip['flip']) => {
9 result.width = canvas.width;
10 result.height = canvas.height;
15 context.translate(canvas.width / 2, canvas.height / 2);
23 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
H A DRotateAction.web.ts21 export default (canvas: HTMLCanvasElement, degrees: ActionRotate['rotate']) => {
22 const { width, height } = sizeFromAngle(canvas.width, canvas.height, degrees);
38 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
H A DCropAction.web.ts6 export default (canvas: HTMLCanvasElement, options: ActionCrop['crop']) => {
11 width = clamp(width, canvas.width);
12 height = clamp(height, canvas.height);
13 originX = clamp(originX, canvas.width);
14 originY = clamp(originY, canvas.height);
17 width = Math.min(originX + width, canvas.width) - originX;
18 height = Math.min(originY + height, canvas.height) - originY;
32 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
/expo/packages/expo-image-manipulator/build/actions/
H A DFlipAction.web.js3 export default (canvas, flip) => {
7 result.width = canvas.width;
8 result.height = canvas.height;
11 context.translate(canvas.width / 2, canvas.height / 2);
17 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
H A DRotateAction.web.js14 export default (canvas, degrees) => {
15 const { width, height } = sizeFromAngle(canvas.width, canvas.height, degrees);
26 context.drawImage(canvas, -canvas.width / 2, -canvas.height / 2, canvas.width, canvas.height);
H A DCropAction.web.js3 export default (canvas, options) => {
8 width = clamp(width, canvas.width);
9 height = clamp(height, canvas.height);
10 originX = clamp(originX, canvas.width);
11 originY = clamp(originY, canvas.height);
13 width = Math.min(originX + width, canvas.width) - originX;
14 height = Math.min(originY + height, canvas.height) - originY;
22 context.drawImage(canvas, originX, originY, width, height, 0, 0, width, height);
/expo/android/vendored/sdk49/@shopify/react-native-skia/android/src/main/java/abi49_0_0/com/shopify/reactnative/skia/
H A DViewScreenshotService.java64 renderViewToCanvas(canvas, view, paint); in makeViewScreenshotFromTag()
71 canvas.save(); in renderViewToCanvas()
72 applyTransformations(canvas, view); in renderViewToCanvas()
94 view.draw(canvas); in renderViewToCanvas()
114 canvas.save(); in renderViewToCanvas()
122 canvas.restore(); in renderViewToCanvas()
132 canvas.save(); in renderViewToCanvas()
145 canvas.save(); in renderViewToCanvas()
148 canvas.restore(); in renderViewToCanvas()
159 view.draw(canvas); in renderViewToCanvas()
[all …]
/expo/android/vendored/unversioned/@shopify/react-native-skia/android/src/main/java/com/shopify/reactnative/skia/
H A DViewScreenshotService.java64 renderViewToCanvas(canvas, view, paint); in makeViewScreenshotFromTag()
71 canvas.save(); in renderViewToCanvas()
72 applyTransformations(canvas, view); in renderViewToCanvas()
94 view.draw(canvas); in renderViewToCanvas()
114 canvas.save(); in renderViewToCanvas()
122 canvas.restore(); in renderViewToCanvas()
132 canvas.save(); in renderViewToCanvas()
145 canvas.save(); in renderViewToCanvas()
148 canvas.restore(); in renderViewToCanvas()
159 view.draw(canvas); in renderViewToCanvas()
[all …]
/expo/packages/expo-gl/src/
H A DGLView.web.tsx59 canvas?: HTMLCanvasElement,
62 if (!canvas) {
97 const { canvas } = gl;
114 width: canvas.width,
115 height: canvas.height,
120 canvas?: HTMLCanvasElement;
128 const canvas = document.createElement('canvas');
166 if (this.canvas) {
228 if (this.canvas) {
239 this.canvas = canvas;
[all …]
/expo/android/vendored/sdk47/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h36 static bool clipWithStencil(SkCanvas* canvas);
41 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
43 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
47 static void ResetClip(SkCanvas* canvas);
56 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/android/vendored/sdk47/react-native-svg/android/src/main/java/abi47_0_0/com/horcrux/svg/
H A DGroupView.java39 void setupGlyphContext(Canvas canvas) { in setupGlyphContext() argument
40 RectF clipBounds = new RectF(canvas.getClipBounds()); in setupGlyphContext()
72 setupGlyphContext(canvas); in draw()
73 clip(canvas, paint); in draw()
74 drawGroup(canvas, paint, opacity); in draw()
103 node.restoreCanvas(canvas, count); in drawGroup()
114 svgView.drawChildren(canvas); in drawGroup()
125 super.draw(canvas, paint, opacity); in drawPath()
167 p2 = n.getPath(canvas, paint); in getPath()
174 Rect clipBounds = canvas.getClipBounds(); in getPath()
[all …]
/expo/android/vendored/sdk48/react-native-svg/android/src/main/java/abi48_0_0/com/horcrux/svg/
H A DGroupView.java39 void setupGlyphContext(Canvas canvas) { in setupGlyphContext() argument
40 RectF clipBounds = new RectF(canvas.getClipBounds()); in setupGlyphContext()
72 setupGlyphContext(canvas); in draw()
73 clip(canvas, paint); in draw()
74 drawGroup(canvas, paint, opacity); in draw()
103 node.restoreCanvas(canvas, count); in drawGroup()
114 svgView.drawChildren(canvas); in drawGroup()
125 super.draw(canvas, paint, opacity); in drawPath()
167 p2 = n.getPath(canvas, paint); in getPath()
174 Rect clipBounds = canvas.getClipBounds(); in getPath()
[all …]
/expo/android/vendored/unversioned/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/ios/vendored/unversioned/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/ios/vendored/sdk47/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/ios/vendored/sdk48/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/ios/vendored/sdk49/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/android/vendored/sdk49/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/android/vendored/sdk48/@shopify/react-native-skia/cpp/skia/include/android/
H A DSkAndroidFrameworkUtils.h39 static bool clipWithStencil(SkCanvas* canvas);
44 static sk_sp<SkSurface> getSurfaceFromCanvas(SkCanvas* canvas);
46 static int SaveBehind(SkCanvas* canvas, const SkRect* subset);
50 static void ResetClip(SkCanvas* canvas);
59 static SkCanvas* getBaseWrappedCanvas(SkCanvas* canvas);
/expo/android/vendored/unversioned/react-native-svg/android/src/main/java/com/horcrux/svg/
H A DGroupView.java40 void setupGlyphContext(Canvas canvas) { in setupGlyphContext() argument
73 setupGlyphContext(canvas); in draw()
74 clip(canvas, paint); in draw()
75 drawGroup(canvas, paint, opacity); in draw()
76 renderMarkers(canvas, paint, opacity); in draw()
107 node.restoreCanvas(canvas, count); in drawGroup()
123 svgView.drawChildren(canvas); in drawGroup()
134 super.draw(canvas, paint, opacity); in drawPath()
176 p2 = n.getPath(canvas, paint); in getPath()
183 Rect clipBounds = canvas.getClipBounds(); in getPath()
[all …]
/expo/android/vendored/sdk49/react-native-svg/android/src/main/java/abi49_0_0/com/horcrux/svg/
H A DGroupView.java40 void setupGlyphContext(Canvas canvas) { in setupGlyphContext() argument
73 setupGlyphContext(canvas); in draw()
74 clip(canvas, paint); in draw()
75 drawGroup(canvas, paint, opacity); in draw()
76 renderMarkers(canvas, paint, opacity); in draw()
107 node.restoreCanvas(canvas, count); in drawGroup()
123 svgView.drawChildren(canvas); in drawGroup()
134 super.draw(canvas, paint, opacity); in drawPath()
176 p2 = n.getPath(canvas, paint); in getPath()
183 Rect clipBounds = canvas.getClipBounds(); in getPath()
[all …]

12345678910>>...15