![]() |
Jypeli 4
The simple game programming library
|
Kuva. Lisää...
Julkiset jäsenfunktiot | |
| Image (Microsoft.Xna.Framework.Graphics.Texture2D texture) | |
| Image (int width, int height, Color backColor) | |
| Luo uuden kuvan. | |
| Image (double width, double height, Color backColor) | |
| Luo uuden kuvan. | |
| Image | Clone () |
| Image | Area (int left, int top, int right, int bottom) |
| void | Fill (Color backColor) |
Staattiset julkiset jäsenfunktiot | |
| static Image | FromFile (string path) |
| Lataa kuvan tiedostosta. Kuvan ei tarvitse olla lisättynä Content-projektiin. | |
| static Image | CreateStarSky (int width, int height, int stars) |
| Luo tähtitaivaskuvan. | |
| static Image | FromText (string text, Font font, Color textColor, Color backgroundColor) |
| Luo kuvan tekstistä. | |
| static Image | DrawTextOnImage (Image img, string text, Vector position, Font font, Color textColor, Color backgroundColor) |
| Piirtää tekstiä kuvan päälle. | |
| static Image | DrawTextOnImage (Image img, string text, Font font, Color textColor) |
| Piirtää tekstiä kuvan päälle keskelle kuvaa. | |
| static Image | FromGradient (int imageWidth, int imageHeight, Color lowerColor, Color upperColor) |
| Luo pystysuuntaisen liukuväritetyn kuvan. | |
| static Image | FromColor (int imageWidth, int imageHeight, Color color) |
| Luo yksivärisen kuvan. | |
| static Image | Mirror (Image image) |
| Peilaa kuvan X-suunnassa. | |
| static Image[] | Mirror (Image[] images) |
| Peilaa kuvat X-suunnassa. | |
| static Image | Flip (Image image) |
| Peilaa kuvan Y-suunnassa. | |
| static Image[] | Flip (Image[] images) |
| Peilaa kuvat Y-suunnassa. | |
| static Image | Color (Image image, Color color) |
| Värittää kuvan. | |
| static Image[] | Color (Image[] images, Color color) |
| Värittää kuvat. | |
| static Image | Color (Image image, byte alpha) |
| static Image | TileHorizontal (Image left, Image right) |
| static Image | TileVertical (Image top, Image bottom) |
Ominaisuudet | |
| Color | this[int row, int col] [get, set] |
| int | Width [get] |
| Leveys pikseleinä. | |
| int | Height [get] |
| Korkeus pikseleinä. | |
| string | Name [get] |
| Nimi. | |
Kuva.
Luo uuden kuvan.
| width | Kuvan leveys |
| height | Kuvan korkeus |
| backColor | Kuvan taustaväri |
Luo uuden kuvan.
| width | Kuvan leveys |
| height | Kuvan korkeus |
| backColor | Kuvan taustaväri |
Värittää kuvan.
| image | Väritettävä kuva. |
| color | Väri, jolla väritetään. |
Värittää kuvat.
| images | Väritettävät kuvat. |
| color | Väri, jolla väritetään. |
| static Image CreateStarSky | ( | int | width, |
| int | height, | ||
| int | stars | ||
| ) | [inline, static] |
Luo tähtitaivaskuvan.
| width | Tekstuurin leveys. |
| height | Tekstuurin korkeus. |
| stars | Tähtien määrä. |
| static Image DrawTextOnImage | ( | Image | img, |
| string | text, | ||
| Vector | position, | ||
| Font | font, | ||
| Color | textColor, | ||
| Color | backgroundColor | ||
| ) | [inline, static] |
Piirtää tekstiä kuvan päälle.
| img | Kuva jonka päälle piirretään |
| text | Piirrettävä teksti |
| position | Piirtokohta (origo keskellä kuvaa) |
| font | Fontti |
| textColor | Tekstin väri |
| backgroundColor | Tekstin taustaväri |
| static Image DrawTextOnImage | ( | Image | img, |
| string | text, | ||
| Font | font, | ||
| Color | textColor | ||
| ) | [inline, static] |
Piirtää tekstiä kuvan päälle keskelle kuvaa.
| img | Kuva jonka päälle piirretään |
| text | Piirrettävä teksti |
| font | Fontti |
| textColor | Tekstin väri |
Peilaa kuvan Y-suunnassa.
| image | Peilattava kuva. |
Peilaa kuvat Y-suunnassa.
| images | Peilattavat kuvat. |
Luo yksivärisen kuvan.
| imageWidth | Kuvan leveys. |
| imageHeight | Kuvan korkeus. |
| color | Kuvan väri. |
| static Image FromFile | ( | string | path | ) | [inline, static] |
Lataa kuvan tiedostosta. Kuvan ei tarvitse olla lisättynä Content-projektiin.
| path | Tiedoston polku. |
| static Image FromGradient | ( | int | imageWidth, |
| int | imageHeight, | ||
| Color | lowerColor, | ||
| Color | upperColor | ||
| ) | [inline, static] |
Luo pystysuuntaisen liukuväritetyn kuvan.
| imageWidth | kuvan leveys. |
| imageHeight | kuvan korkeus. |
| lowerColor | Alareunassa käytettävä väri. |
| upperColor | Yläreunassa käytettävä väri. |
| static Image FromText | ( | string | text, |
| Font | font, | ||
| Color | textColor, | ||
| Color | backgroundColor | ||
| ) | [inline, static] |
Luo kuvan tekstistä.
| text | Teksti josta kuva luodaan |
| font | Fontti |
| textColor | Tekstin väri |
| backgroundColor | Tekstin taustaväri |
Peilaa kuvan X-suunnassa.
| image | Peilattava kuva. |
Peilaa kuvat X-suunnassa.
| images | Peilattavat kuvat. |
int Height [get] |
Korkeus pikseleinä.
string Name [get] |
Nimi.
int Width [get] |
Leveys pikseleinä.
1.7.4