How to create white border around bitmap?

后端 未结 8 1723
萌比男神i
萌比男神i 2021-02-12 19:24

For example I want a white border of 10pixel around all 4 side of the bitmap. I am not using it for imageview I am currently using this code to crop image. May I know how I coul

8条回答
  •  清歌不尽
    2021-02-12 19:31

    You can draw 4 rectangles after painting your bitmap's stuff.

    point 0,0,3,sizey
    point 0,0,sizex,3
    point 0,sizey-3,sizex,sizey
    point sizex-3,0,sizex,sizey
    

提交回复
热议问题