Class: TencentCloud::Tiia::V20190529::ImageRect

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190529/models.rb

Overview

图像主体区域坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ImageRect

Returns a new instance of ImageRect.



1529
1530
1531
1532
1533
1534
# File 'lib/v20190529/models.rb', line 1529

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    宽度。

  • Height:

    高度。



1527
1528
1529
# File 'lib/v20190529/models.rb', line 1527

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    宽度。

  • Height:

    高度。



1527
1528
1529
# File 'lib/v20190529/models.rb', line 1527

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    宽度。

  • Height:

    高度。



1527
1528
1529
# File 'lib/v20190529/models.rb', line 1527

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角横坐标。

  • Y:

    左上角纵坐标。

  • Width:

    宽度。

  • Height:

    高度。



1527
1528
1529
# File 'lib/v20190529/models.rb', line 1527

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



1536
1537
1538
1539
1540
1541
# File 'lib/v20190529/models.rb', line 1536

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
end