123456789101112131415161718 |
- package image
- type Size struct {
- Width uint
- Height uint
- }
- func NewSize(width, height uint) *Size {
- return &Size{width, height}
- }
- func (s *Size) SetWidth(width uint) {
- s.Width = width
- }
- func (s *Size) SetHeight(height uint) {
- s.Height = height
- }
|