BaseBitmap draw off the area

On 14/05/2014 at 09:05, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R13 
Platform:   Windows  ;   
Language(s) :     C++  ;


I have a little problem to draw lines into a BaseBitmap.

When all the lines are inside the area, it's ok, but when there is one point out of the bitmap area, the line is not drawn.

_<_img src="" border="0" /_>_

Is there a way to set a kind of clipping region for a basebitmap, to be able to draw lines who exceed the bitmap area ?

On 14/05/2014 at 10:45, xxxxxxxx wrote:

It's ok, I used the Cohen–Sutherland algorithm to make the clipping and it works fine !–Sutherland_algorithm

For anyone who want ot use it : don't forget to use (Width - 1) and (Height - 1) for the size of the area in the algorythm, because it represent the max position pixel value (for 100 width, pixels X are 0 to 99).