That will occur if your line is only 1 pixel wide in the original. When it resizes, the algorithm causes the border on right and bottom to appear "trimmed off", when in fact, what is occurring is the algorithm places a degree of importance based on pixel hue/color/saturation/placement. It deems that the interior cells take precedence and the border gets lost. Various graphic applications such as Adobe Photoshop and Corel PaintShop Pro give you various resize options [interpolation modes] to help avoid things like this. You need to change the interpolationMode to something different. I haven't used GDI+ in a while, so I forget what the available modes are. Try each of the modes to see which is most acceptable to you.
What I would likely do is this to guarantee the integrity of the border:
- Strip the border off the original picture
- Resize the remaining portion of the picture
- Add a border back to the resulting picture
This way your border will remain unchanged - a single red pixel surrounding the resized image.