Smoothly resize sprite with rounded corners?

I have a rounded rectangle sprite that I need to be resized across a single axis. Right now it’s a square, but I will need it to be resizeable on the Y axis without stretching the borders or warping the corners. It’s just a single sprite. Is there any way I can do this?

I believe you are looking for the Nine-Slice sprite technique that Unity provides.