Let's say a convex polygon is given as a set of coordinates. We need to offset all the lines (to which edges belong) by $h$ in the direction of their perpendicular lines and in the opposite direction of the polygon.
More simply put, the polygon should be sort of inflated. If one of the lines given satisfies the equation $y=kx+b_1$ then we just need to find the coordinate $b_2$ for the shifted line using the formula $ |b_2-b_1|=h\sqrt{k^2+1}$.
I am not sure how to choose the right direction. I know that we can check the orientation of a point relative to a line but in this case, I need to make sure that the new line moved away from all the polygon points.
Thanks in advance!

You know that you are convex, so you can find points inside your polygon. I have no paper to check, but I believe that the center, ie. mean of the vertices of your polygon, should be a viable candidate. Then you can formalize inside and outside as at the same resp. opposite side of the boundary with respect to the center.
I wonder, whether you can solve this problem by choosing a specific point and scaling the polygon up (using the point as center of scaling).