Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Dim bmeff As BitmapCreatorEffects
    bmeff.Initialize
    
    Dim cv,smallCv As B4XCanvas            'You can also use an ImageView or B4XImageView
    Dim cvrect, smallCvRect As B4XRect
    cv.Initialize(Root)
    cvrect.Initialize(0, 0, Root.Width, Root.Height)
    Dim im As B4XBitmap = xui.LoadBitmapResize(File.DirAssets, "picasso.jpg", cvrect.Width, cvrect.Height, True)
    cv.DrawBitmap(im, cvrect)
    Dim w As Int = 300
    Dim h As Int = 200
    Dim forepanel As B4XView = xui.CreatePanel("")
    forepanel.SetColorAndBorder(xui.color_rgb(220, 220, 255), 2, xui.Color_Black, 5)
    Root.AddView(forepanel, Root.width / 2 - w / 2, Root.Height /2 - h / 2, w, h)
    smallCv.Initialize(forepanel)
    smallCvRect.Initialize(2, 2, forepanel.Width - 2, forepanel.Height - 2)
    
    For i = 0 To 30
        Dim x As Int = 100 + i * 5
        forepanel.SetLayoutAnimated(0, x, x, forepanel.width, forepanel.height)
        Dim sectionPart As B4XBitmap = im.Crop(forepanel.Left, forepanel.Top, forepanel.Width, forepanel.Height)
        Dim blurSection As B4XBitmap = bmeff.Blur(sectionPart)
        smallCv.DrawBitmap(blurSection, smallCvRect)
        Sleep(300)
    Next
End Sub