Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix · OSX ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.BMPReader
java.lang.Object
   |
   +----com.jconfig.BMPReader

  Summary

public class  BMPReader
     extends java.lang.Object
{
          // Methods 1
     public static final boolean readBMPFile(File, int, int, int[]);

}

This class contains a static method used to convert an 8-bit, uncompressed Windows .bmp file into Java's ARGB format.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




  Methods

· readBMPFile

Summary  |  Top

   public static final boolean readBMPFile(File bmpFile, 
                                           int destWidth, 
                                           int destHeight, 
                                           int[] destPixels) 

Puts an 8-bit, uncompressed Windows .bmp file into Java's ARGB format. Returns true if the file was read OK, false otherwise.

Parameter Description
bmpFile the .bmp file
destWidth the width of the bitmap. You must know this in advance.
destHeight the height of the bitmap. You must know this in advance.
destPixels the pixels will be placed in this array. It must have at least destWidth * destHeight elements. The top left pixel will be placed at destPixels[ 0 ], and so on.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7