QML Canvas saving drawings to image WinCE



  • I have two canvases, one for loading an image and the other one for painting. I managed to get the save of my drawings into the image with the following code on windows desktop, but could not get the same code working on WinCE HW. Not sure what could be wrong. Is it a bug in Qt side or do i need to do any additional step to get it to work?

    onImageLoaded:
    {
    var ctx = getContext('2d')
    ctx.clearRect(0, 0 , width, height)
    ctx.drawImage(flickable.imgfile, 0, 0, width, height)
    ctx.drawImage(canvas, 0, 0, width, height) // canvas has all the drawings
    save(...)
    }

    Any help would be great...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.