home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / FWWinDIB.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.4 KB  |  57 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWWinDIB.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWWINDIB_H
  11. #define FWWINDIB_H
  12.  
  13. #ifndef FWSTDDEF_H
  14. #include "FWStdDef.h"
  15. #endif
  16.  
  17. #ifdef FW_BUILD_WIN
  18.  
  19. #ifndef SLWINDIB_H
  20. #include "SLWinDIB.h"
  21. #endif
  22.  
  23. //========================================================================================
  24. // DIB utilities
  25. //========================================================================================
  26.  
  27. unsigned short
  28. SL_API        FW_DIBAcquireColorTable(FW_WinDIB dib, FW_SColor** colors);
  29.  
  30. HBITMAP
  31. SL_API        FW_DIBConvertToBitmap(FW_WinDIB dib, HPALETTE hPal);
  32.  
  33. FW_WinDIB
  34. SL_API        FW_DIBConvertFromBitmap(HBITMAP bitmapHandle, short bitDepth, HPALETTE hPal);
  35.  
  36. HPALETTE
  37. SL_API        FW_DIBGetPalette(FW_WinDIB dib);
  38.  
  39. FW_WinDIB
  40. SL_API        FW_DIBCreate(
  41.                 short bitDepth, short width, short height,
  42.                 short nbColors, const FW_SColor* colorTable,
  43.                 const void* pixels);
  44.  
  45. FW_WinDIB
  46. SL_API        FW_DIBCreateCopy(FW_WinDIB dib);
  47.  
  48. FW_WinDIB
  49. SL_API        FW_DIBLoadFromStream(FW_CReadableStream& stream, FW_Boolean bFileHeader);
  50.  
  51. void
  52. SL_API        FW_DIBSaveToStream(FW_CWritableStream& stream, FW_WinDIB dib, FW_Boolean bFileHeader);
  53.  
  54. #endif // FW_BUILD_WIN
  55.  
  56. #endif // FWWINDIB_H
  57.