Click or drag to resize

SpriteAdjustmentRatio Structure

A structure that contains the width and height adjustment ratio. Use this if you need to manually calculate positions between the PictureBox that the sprite is in, and the Background Image itself.

Namespace:  SpriteLibrary
Assembly:  SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.6 (1.0.0.6)
Syntax
C#
public struct SpriteAdjustmentRatio

The SpriteAdjustmentRatio type exposes the following members.

Methods
  NameDescription
Public methodEquals (Inherited from ValueType.)
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldheight_ratio
Divide a picturebox ratio by this to get the image location. Multiply an image location by this to get the picturebox location.
Public fieldwidth_ratio
Divide a picturebox ratio by this to get the image location. Multiply an image location by this to get the picturebox location.
Top
See Also