The amount of the distribution shared with shareholders, (a shareholder is the owner of a share or stock), is decided on by the company’s Board of Directors.
Dividends can be issued as cash payments, (expressed as $ / share), or as additional shares as part of a Dividend Reinvestment Plan (DRIP). The amount you receive depends on how many shares you own.
The gain is not realized until the asset is sold. Capital gains are good. Capital losses, not so much, but you can use any capital losses you have to offset your taxable gains. You should talk to your accountant about this.