cynorr

Learn what I touched.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Drawing a circle in bitmap and vector


Two major 2D graphic types in computer is bitmap and vector images . Bitmap images are made up of pixels in a grid and pixels are picture elements ; The higher quality a picture is , the more pixels the picture has . The vector image is different , which are made up of many individual , scalable objects . These objects are defined by mathematical equations rather than pixels , so they always render at the highest quality , which consist of lines , curves , and shapes with editable attributes .
Here , we draw a circle in both types of picture . When we select bitmap image and need a 1920*1080 picture , the size of the picture will more than 1.0 MB . If we want 3840 * 4320 , the size of it may be 4.0 MB or more . While in the vector image , the circle just need a coordinate of the centre of the circle and proportion in circle and the entire picture , which can be represented by several parameters . The size of latter may be several byte no matter we want whether 1920x1080 or 3840x4320 . The core content is a circle , which is the value of the picture . the process of extracting circle ( the value of picture ) from bitmap image is neural network .

Introduction

posted on 2014-12-24 11:58  cynorr  阅读(102)  评论(0编辑  收藏  举报