Pārlūkot izejas kodu

Updated image to POT

pull/84/head
raysan5 pirms 9 gadiem
vecāks
revīzija
a8bb9b6b19
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. Binārs
      examples/resources/cat.png
  2. +2
    -2
      examples/textures_image_drawing.c

Binārs
examples/resources/cat.png Parādīt failu

Pirms Pēc
Platums: 490  |  Augstums: 733  |  Izmērs: 648 KiB Platums: 384  |  Augstums: 512  |  Izmērs: 379 KiB

+ 2
- 2
examples/textures_image_drawing.c Parādīt failu

@ -25,14 +25,14 @@ int main()
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
Image cat = LoadImage("resources/cat.png"); // Load image in CPU memory (RAM)
ImageCrop(&cat, (Rectangle){ 170, 120, 280, 380 }); // Crop an image piece
ImageCrop(&cat, (Rectangle){ 100, 10, 280, 380 }); // Crop an image piece
ImageFlipHorizontal(&cat); // Flip cropped image horizontally
ImageResize(&cat, 150, 200); // Resize flipped-cropped image
Image parrots = LoadImage("resources/parrots.png"); // Load image in CPU memory (RAM)
// Draw one image over the other with a scaling of 1.5f
ImageDraw(&parrots, cat, (Rectangle){ 0, 0, cat.width, cat.height}, (Rectangle){ 30, 40, cat.width*1.5f, cat.height*1.5f });
ImageDraw(&parrots, cat, (Rectangle){ 0, 0, cat.width, cat.height }, (Rectangle){ 30, 40, cat.width*1.5f, cat.height*1.5f });
ImageCrop(&parrots, (Rectangle){ 0, 50, parrots.width, parrots.height - 100 }); // Crop resulting image
UnloadImage(cat); // Unload image from RAM

Notiek ielāde…
Atcelt
Saglabāt