开发者

Canvas Height & Width Problem

开发者 https://www.devze.com 2023-04-06 14:18 出处:网络
My Problem is I am Using Face Detector Example from Following Link but How开发者_运维百科 To Find Square Height & Width and Replace Image on Square Same as Square Height & Width.Sorry for Bad

My Problem is I am Using Face Detector Example from Following Link but How开发者_运维百科 To Find Square Height & Width and Replace Image on Square Same as Square Height & Width.Sorry for Bad English Communication.

http://downloads.ziddu.com/downloadfile/9930500/AndroidFaceDetector_files_100520a.zip.html

Please Help Me.


Get the height and width from canvas.getHeight,canvas.getWidth respectively and then make a new bitmap with same size and set it to the canvas. Hope this'll help you.

0

精彩评论

暂无评论...
验证码 换一张
取 消