REPRODUCIBILITY: 100%
OS VERSION: > 3.4
HARDWARE: vollaphone/gigaset gs290, XA2, Xperia 10 ii
UI LANGUAGE: en
REGRESSION: YES
DESCRIPTION:
Give an Image and a Canvas, calling something like drawingCanvas.requestPaint() causes the Image to be rendered in the Canvas with a blue tint. An example in @kimmolindholm s paint (which I’m trying to resurrect):
Possibly related to:
PRECONDITIONS:
Application context:
view->setPersistentOpenGLContext(true);
view->setPersistentSceneGraph(true);
STEPS TO REPRODUCE:
- call canvas.requestPaint() with a Image object on the page.
EXPECTED RESULT:
The image should retain it’s hues. Same source deployed to 3.4 works fine.
ACTUAL RESULT:
The image is tinted.
MODIFICATIONS:
Good question, but I’ve tested on a clean install device. No difference.
ADDITIONAL INFORMATION:
Copying the data from the Image (insertedImage is an Image {} tag) ‘sometimes’ works.
insertedImage.grabToImage(function(result, rotation)
{
var url = result.url
drawingCanvas.loadImage(url)
var ctx = drawingCanvas.getContext('2d')
Draw.clear(ctx)
ctx.drawImage(url, 0, 0)
ctx.rotate(rotation)
drawingCanvas.unloadImage(url)
drawingCanvas.requestPaint()
previewCanvas.clear()
})
I would use this work-a-round BUT, ctx.rotate(rotation) does not work.
I’ve now tried this on Vollas(GS290 also) and on an Experia 10 ii.