> For the complete documentation index, see [llms.txt](https://csharp.progdocs.se/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://csharp.progdocs.se/annat/raylib/bilder-och-texturer.md).

# Bilder och texturer

## Bilder och texturer

I Raylib skiljer man på *Images* och *Textures*.

Skillnaden är att Images kan *redigeras*. Textures kan *ritas ut till skärmen*.

### Filformat som stöds

* png
* bmp
* tga
* gif (dock ej animationer)
* dds, hdr, ktx, astc

{% hint style="info" %}
**Observera** att det saknas stöd för jpg – detta eftersom jpg är väldigt ovanligt i spel.
{% endhint %}

{% hint style="info" %}
**Observera** att alla bilder är [**resursfiler**](/filhantering/resursfiler.md). Det betyder att du måste[ krångla lite](/filhantering/resursfiler.md#losning-1-kopiera-filerna-automatiskt-till-malmappen) för att vara säker på att programmet kan hitta dem.&#x20;
{% endhint %}

## [Texture](/annat/raylib/bilder-och-texturer/texture.md)

En Texture är en bild som är sparad i grafikkortets minne (VRAM), och är redo att ritas ut på skärmen. Man kan skapa en Texture utifrån en [Image ](#image)eller läsa in en bildfil från hårddisken direkt.

## [Image](/annat/raylib/bilder-och-texturer/image.md)

En Image är en bild som är sparad i datorns arbetsminne (RAM), och kan redigeras på olika sätt.

För att man ska kunna rita ut den till fönstret behöver man sedan konvertera den till en [texture](#texture). Det gör man genom [LoadTextureFromImage](/annat/raylib/bilder-och-texturer/texture.md#loadtexturefromimage).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://csharp.progdocs.se/annat/raylib/bilder-och-texturer.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
