Am I doing that right? Scalling : I wrote code to make 2D transformation: scalling. 

( value = variable from slider 1-10 )

    DrawPixel(x*value/6.0,y*value/6.0,bits,255,255,255);

And I received that output:
[you can check here][1]


  [1]: https://i.stack.imgur.com/zXP1w.png

As you can see I received a little breaks in that square. Is it okay or I have wrong code?