ArticleslgStudy

science

DevIL

DevIL is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand DevIL rather than just read about it. In short: Developer's Image Library or DevIL, started by Denton Woods, is a cross-platform image library which aims to provide a common API for different image file formats. It consists of three parts: the main library (IL), the utility library (ILU) and the utility toolkit (ILUT), mirroring the corresponding parts of OpenGL (although the OpenGL Utility Toolkit is not part of the OpenGL specification).

Key takeaways

  • DevIL belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect DevIL to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of DevIL from memory before moving on to harder problems.

Reference excerpt

Developer's Image Library or DevIL, started by Denton Woods, is a cross-platform image library which aims to provide a common API for different image file formats. It consists of three parts: the main library (IL), the utility library (ILU) and the utility toolkit (ILUT), mirroring the corresponding parts of OpenGL (although the OpenGL Utility Toolkit is not part of the OpenGL specification). It was originally called OpenIL; the name was changed at a request from Silicon Graphics, Inc. DevIL currently supports 43 file formats for reading and 17 for writing; among those with read-write support are BMP, DDS, JPEG, PCX, PNG, raw, TGA, and TIFF. The actual supported formats depend on compilation settings, in particular, external libraries like libjpeg and libpng. On June 9, 2010, Woods announced that he had submitted a request to change the licensing terms from the GNU LGPL to a BSD license. According to the website (as well as the source repository), DevIL is still licensed under the terms of the LGPL. DevIl is listed in the directory of the Free Software Foundation as Free Software.

Features

Portable, supports Windows, Mac OS X and *nix. OpenGL-style syntax. Use of image names instead of pointers. Full Unicode support for filenames. 64-bit compatibility. Loading from files, file streams or memory "lumps". Direct access to data through ilGetData() and ilSetData(). Support for luminance, rgb(a), bgr(a) and colour-indexed images. Support for 3 different numbers of bits per channel. Conversion between all formats and datatypes (including palettes). User-defined automatic conversions if desired when loading images. Automatic conversion when saving images if needed. Automatic conversion of colour-indexed images to truecolour images if desired. Controllable compression when saving. Maintains a state stack that can be pushed and popped. Full support for 3d texture volumes (3d images). Validation of images. Support for layers. Support for mipmaps. Support for animations. Support for cubemaps. User-specified clear colour. Can load a default image if loading fails. User-specified hints. Use of key colours. Support for overlaying an image on top of another. Allows the user to specify their own loading and saving callbacks, even overriding the default ones. Support for user-specified read and write functions. Delphi support. Visual Basic support. Linux support. Can pick and choose which features will be used to create smaller dlls. Choose whether to use the Intel Jpeg Library or libjpeg. A whole host of effects and filters to apply to images, such as embossing and edge detection. Images can be resized or even be put on a larger background (enlarged canvas). OpenGL, Allegro, Windows GDI and DirectX API support.

See also

GD Graphics Library GraphicsMagick ImageMagick

References

External links Home page SourceForge project page

Worked examples

Example 1 — a first encounter with DevIL

Start with the simplest possible case. Write down what DevIL claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to DevIL before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about DevIL ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of DevIL

In research
DevIL appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses DevIL in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
DevIL is common in secondary-school and first-year university syllabi. It links to neighbouring topics C (programming language) libraries, Graphics libraries, so understanding it makes those chapters shorter.
In everyday life
Look for DevIL outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “DevIL” →

How to study DevIL in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what DevIL means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain DevIL out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is DevIL in simple terms?

Developer's Image Library or DevIL, started by Denton Woods, is a cross-platform image library which aims to provide a common API for different image file formats. It consists of three parts: the main library (IL), the utility library (ILU) and the utility toolkit (ILUT), mirroring the correspondin…

Why does DevIL matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study DevIL?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on DevIL.

Tags

  • C (programming language) libraries
  • Graphics libraries

Keep exploring