func_graphics_max2d_loadimage.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. .. _func_graphics_max2d_loadimage:
  2. =========
  3. LoadImage
  4. =========
  5. LoadImage -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. LoadImage:TImage( url:Object,flags=-1 )
  10. Load an image
  11. @url can be either a string or an existing pixmap.
  12. @flags can be 0, -1 or any combination of:
  13. [ @{Flags value} | @{Effect}
  14. * MASKEDIMAGE | The image is masked with the current mask color.
  15. * FILTEREDIMAGE | The image is smoothed when scaled up to greater than its original
  16. size, when rotated, or when drawn at fractional pixel coordinates.
  17. * MIPMAPPEDIMAGE | The image is smoothed when scaled down to less than its original size.
  18. * DYNAMICIMAGE | The image can be modified using #LockImage or #GrabImage.
  19. ]
  20. Note MIPMAPPEDIMAGE images consume extra video memory, so this flag should only be used
  21. when really necessary.
  22. If flags is -1, the auto image flags are used: See #AutoImageFlags.
  23. To combine flags, use the | (boolean OR) operator.
  24. Parameters
  25. ==========
  26. Return Values
  27. =============
  28. A new image object
  29. Examples
  30. ========
  31. See Also
  32. ========