Refactor #4125: Apply size and anchor point getter/setter in samples