Help! BMP file info

one BMP file has following binary formatting(in hexadecimal):
42 4D 66 12 00 00 00 00 00 00 3E 00 00 00 28 00
00 00 C5 00 00 00 A6 00 00 00 01 00 01 00 00 00
00 00 28 12 00 00 12 17 00 00 12 17 00 00 00 00
Since "66 12 00 00" is stored info about size of BMP file as well as other binary info. So I write
getBMPInfo(File f), then use method skip() to find the related binary location. But I am sure how to get
byte array include "66 12 00 00" in order to encoding. Can anyone tell me what to write next step, or give me an example?thx a lot.
My code is following:
import java.io.*;
public class BMPInfo {
     public static void main(String[] args) throws IOException{
          File bmp= new File("E:\\logo1.bmp");
          getBMPInfo(bmp);
     public static void getBMPInfo(File f) throws IOException {
          FileInputStream fis= new FileInputStream(f);
               fis.skip(16);//skip 16 bytes
              fis.close();
}

I already posted an answer at your cross posting: http://forum.java.sun.com/thread.jsp?forum=31&thread=549453&tstart=0&trange=30

Similar Messages

  • Help! Double BMP file

    it is needed to create a new BMP file exactly twice the height of an original BMP file(which is uncompressed), and consisting of two copies of the original image, one on top of the other .
    now I have modify the file size (ie. size of the bit map data+file size); doule the vaule of height, bit map data size, and calculate where the bit map data section stats(ie.the bit map data offset info)
    But now I am not sure hwo to duplicate the entirebit map data section, then how to useFileout putStream and write() method to create a new double BMP file
    Can anyone give me an example? Many thx.
    My code is following:
    import java.io.*;
    public class BMPDouble {
         public static void main(String[] args) throws IOException{
              File bmp= new File(args[0]);
              getBMPInfo(bmp);
         public static void getBMPInfo(File f) throws IOException {
              FileInputStream fis= new FileInputStream(f);
                   int bflen=14;  // 14 byte BITMAPFILEHEADER
                  byte bf[]=new byte[bflen];
                  fis.read(bf,0,bflen);
                  int bilen=40; // 40-byte BITMAPINFOHEADER
                  byte bi[]=new byte[bilen];
                  fis.read(bi,0,bilen);
                  int nsize = (((int)bf[5]&0xff)<<24)
                                  | (((int)bf[4]&0xff)<<16)
                                  | (((int)bf[3]&0xff)<<8)
                                  | (int)bf[2]&0xff;
                  int nheight = (((int)bi[11]&0xff)<<24)
                                  | (((int)bi[10]&0xff)<<16)
                                  | (((int)bi[9]&0xff)<<8)
                                  | (int)bi[8]&0xff;
                   int bmdsize = (((int)bi[23]&0xff)<<24)
                                  | (((int)bi[22]&0xff)<<16)
                                  | (((int)bi[21]&0xff)<<8)
                                  | (int)bi[20]&0xff;
                   int offsetInfo = (((int)bf[13]&0xff)<<24)
                                  | (((int)bf[12]&0xff)<<16)
                                  | (((int)bf[11]&0xff)<<8)
                                  | (int)bf[10]&0xff;
                   int newSize = nsize+bmdsize;
                   int newHeight = nheight*2;
                   int newBmdSize = bmdsize*2;
                   System.out.println("Size: "+newSize+" bytes");
                   System.out.println("Height: "+newHeight);
                   System.out.println("Bit Map Data Size: "+newBmdSize);
                   System.out.println("Bit Map Data offset: "+offsetInfo);
                   fis.close();

    now,the code is all right.
    but it is strange that the print output such as newSize, newHeight,new Bit Map Data Size and Bit Map Data offset equals 0.
    Also, it exists IOException: disk has no enough space.
    Why it will happen?
    import java.io.*;
    public class BMPDouble {
         public static void main(String[] args) throws IOException{
              File bmp= new File(args[0]);
              File bmpDouble= new File(args[1]);
              getBMPInfo(bmp);
              getBMPInfo(bmpDouble);
         public static void getBMPInfo(File f) throws IOException {
              FileInputStream fis= new FileInputStream(f);
              FileOutputStream fos= new FileOutputStream(f);
                   int bflen=14;  // 14-byte BITMAPFILEHEADER
                  byte bf[]=new byte[bflen];
                  fis.read(bf,0,bflen);
                  int bilen=40; // 40-byte BITMAPINFOHEADER
                  byte bi[]=new byte[bilen];
                  fis.read(bi,0,bilen);
                  fis.mark((bflen+bilen)-1);
                  int nsize = (((int)bf[5]&0xff)<<24)
                                  | (((int)bf[4]&0xff)<<16)
                                  | (((int)bf[3]&0xff)<<8)
                                  | (int)bf[2]&0xff;
                  int nheight = (((int)bi[11]&0xff)<<24)
                                  | (((int)bi[10]&0xff)<<16)
                                  | (((int)bi[9]&0xff)<<8)
                                  | (int)bi[8]&0xff;
                   int bmdsize = (((int)bi[23]&0xff)<<24)
                                  | (((int)bi[22]&0xff)<<16)
                                  | (((int)bi[21]&0xff)<<8)
                                  | (int)bi[20]&0xff;
                   int offsetInfo = (((int)bf[13]&0xff)<<24)
                                  | (((int)bf[12]&0xff)<<16)
                                  | (((int)bf[11]&0xff)<<8)
                                  | (int)bf[10]&0xff;
                   int newSize = nsize+bmdsize;
                   int newHeight = nheight*2;
                   int newBmdSize = bmdsize*2;
                   System.out.println("Size: "+newSize+" bytes");
                   System.out.println("Height: "+newHeight);
                   System.out.println("Bit Map Data Size: "+newBmdSize);
                   System.out.println("Bit Map Data offset: "+offsetInfo);
                   byte[] NEWBITMAPFILEHEADER = new byte[bflen];
                   byte[] NEWBITMAPINFOHEADER = new byte[bilen];
                   byte[] incomeData = new byte[256];
                   int bytesRead;
                   fos.write(NEWBITMAPFILEHEADER,0,NEWBITMAPFILEHEADER.length);
                   fos.write(NEWBITMAPINFOHEADER,0,NEWBITMAPINFOHEADER.length);
                   while((bytesRead=fis.read(incomeData))!= -1){
                        fos.write(incomeData,0,incomeData.length);
                   fis.reset();
                   while((bytesRead=fis.read(incomeData)) != -1){    
                        fos.write(incomeData,0,incomeData.length);
                   fos.flush();
                   fos.close();
                   fis.close();

  • File info and IPTC data entry help?

    hello,
    having updated to P/S CS5, some of the file info box(es) changes have started to annoy me. Maybe I`m doing someting wrong :-(
    but what annoys me most is having created a template that I use when I import pictures through bridge, when I open it again the file info details in the description box are highlighted and the cursor jumps and goes to the last item in the box, I then have to drag the box down to make it larger, reposition the cursor to add further items, all this takes time especially on deadline where I might have 15 images to caption individually before sending.
    I have tried saving the file info template with a larger description box but no joy, it just reverts to the original size.
    My other main annoyance is the small font size, which when inputting lots of caption is to be honest, a pain. Maybe I need to use a seperate caption maker, any suggestions? or do I just need to spend a lot of time trying to not let this upset me.
    If anyone has a trick on how to input and caption file info any quicker or better I would really appreciate your help.
    thanks, Dave.

    when you insert/update the data in your db use
    <cfqueryparam> tag - it
    will automatically escape all necessary characters.
    at output, i assume you are displaying the data in a text
    input form
    field, the problem is not with cf or your data, but with the
    basic html:
    <input type="text"
    value="#some-cf-variable-with-double-quotes#">
    when the value of cf var contains double quotation marks, the
    rendered
    html will look like:
    <input type="text" value="0.36" in diameter">
    see where the problem is? the value displayed in the field
    will be just
    0.36, and the browser will ignore the rest of the code.
    cf has built-in functions to work around this, like
    xmlformat() or
    htmleditformat()
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Having problem saving an iamge into a BMP file, please help!

    I'm writing a class to read an BMP image and output it again into another BMP file.
    After searching on the forum i have found some code for reading and writing bmp files, i put them togather to make up this class, however, the output bmp file is not correct, can anyone look at my code and tell me wots wrong? thanks!
    public class BMP {
    byte bf[]=new byte[14];
    //     private byte bitmapFileHeader [] = new byte [14];
    byte bi[]=new byte[40];
         public Image BMPReader(String filePath){
              Image image = null;
         try{
         FileInputStream fs=new FileInputStream(filePath);
         fs.read(bf,0,14); //Reads the 14byte fileheader      
         fs.read(bi,0,40); //reads the 40byte infoheader
         int nwidth=(((int)bi[7]&0xff)<<24) //pic width
         | (((int)bi[6]&0xff)<<16)
         | (((int)bi[5]&0xff)<<8)
         | (int)bi[4]&0xff;
         int nheight=(((int)bi[11]&0xff)<<24) //pic height
         | (((int)bi[10]&0xff)<<16)
         | (((int)bi[9]&0xff)<<8)
         | (int)bi[8]&0xff;
         int nbitcount=(((int)bi[15]&0xff)<<8) | (int)bi[14]&0xff;
         //pic size
         int nsizeimage=(((int)bi[23]&0xff)<<24)
         | (((int)bi[22]&0xff)<<16)
         | (((int)bi[21]&0xff)<<8)
         | (int)bi[20]&0xff;
         //parse 24bit bmp
         if(nbitcount==24){
         int npad=(nsizeimage/nheight)-nwidth*3;
         int ndata[]=new int[nheight*nwidth];
         byte brgb[]=new byte[(nwidth+npad)*3*nheight];
         fs.read (brgb,0,(nwidth+npad)*3*nheight);
         int nindex=0;
         for(int j=0;j<nheight;j++){
         for(int i=0;i<nwidth;i++){
         ndata [nwidth*(nheight-j-1)+i]=
         (255&0xff)<<24
         | (((int)brgb[nindex+2]&0xff)<<16)
         | (((int)brgb[nindex+1]&0xff)<<8)
         | (int)brgb[nindex]&0xff;
         nindex+=3;
         nindex+=npad;
         Toolkit kit=Toolkit.getDefaultToolkit();
         image=kit.createImage(new MemoryImageSource(nwidth,nheight,
         ndata,0,nwidth));
         else
              JOptionPane.showMessageDialog(null, "The choosen BMP image is not 24bit" +
                        "only 24bit bitmap is supported for BMP image.",
                   "Invalid image", 0);
              image=(Image)null;
         fs.close();
         }catch (Exception e){
         System.out.println(e);
         return image;
    //     --- Private constants
         private final static int BITMAPFILEHEADER_SIZE = 14;
         private final static int BITMAPINFOHEADER_SIZE = 40;
         //--- Private variable declaration
         //--- Bitmap file header
         private byte bitmapFileHeader [] = new byte [14];
         private byte bfType [] = {'B', 'M'};
         private int bfSize = 0;
         private int bfReserved1 = 0;
         private int bfReserved2 = 0;
         private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
         //--- Bitmap info header
         private byte bitmapInfoHeader [] = new byte [40];
         private int biSize = BITMAPINFOHEADER_SIZE;
         private int biWidth = 0;
         private int biHeight = 0;
         private int biPlanes = 1;
         private int biBitCount = 24;
         private int biCompression = 0;
         private int biSizeImage = 0x030000;
         private int biXPelsPerMeter = 0x0;
         private int biYPelsPerMeter = 0x0;
         private int biClrUsed = 0;
         private int biClrImportant = 0;
         //--- Bitmap raw data
         private int bitmap [];
         //--- File section
         private FileOutputStream fo;
         //--- Default constructor
         public void saveBitmap (String parFilename, Image parImage, int
         parWidth, int parHeight) {
         try {
         fo = new FileOutputStream (parFilename);
         save (parImage, parWidth, parHeight);
         fo.close ();
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * The saveMethod is the main method of the process. This method
         * will call the convertImage method to convert the memory image to
         * a byte array; method writeBitmapFileHeader creates and writes
         * the bitmap file header; writeBitmapInfoHeader creates the
         * information header; and writeBitmap writes the image.
         private void save (Image parImage, int parWidth, int parHeight) {
         try {
         convertImage (parImage, parWidth, parHeight);
         writeBitmapFileHeader ();
         writeBitmapInfoHeader ();
         writeBitmap ();
         System.out.println("finished");
         catch (Exception saveEx) {
         saveEx.printStackTrace ();
         * convertImage converts the memory image to the bitmap format (BRG).
         * It also computes some information for the bitmap info header.
         private boolean convertImage (Image parImage, int parWidth, int parHeight) {
         int pad;
         bitmap = new int [parWidth * parHeight];
         PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
         bitmap, 0, parWidth);
         try {
         pg.grabPixels ();
         catch (InterruptedException e) {
         e.printStackTrace ();
         return (false);
         pad = (4 - ((parWidth * 3) % 4)) * parHeight;
         biSizeImage = ((parWidth * parHeight) * 3) + pad;
         bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
         BITMAPINFOHEADER_SIZE;
         biWidth = parWidth;
         biHeight = parHeight;
         return (true);
         * writeBitmap converts the image returned from the pixel grabber to
         * the format required. Remember: scan lines are inverted in
         * a bitmap file!
         * Each scan line must be padded to an even 4-byte boundary.
         private void writeBitmap () {
         int size;
         int value;
         int j;
         int i;
         int rowCount;
         int rowIndex;
         int lastRowIndex;
         int pad;
         int padCount;
         byte rgb [] = new byte [3];
         size = (biWidth * biHeight) - 1;
         pad = 4 - ((biWidth * 3) % 4);
         if (pad == 4) // <==== Bug correction
         pad = 0; // <==== Bug correction
         rowCount = 1;
         padCount = 0;
         rowIndex = size - biWidth;
         lastRowIndex = rowIndex;
         try {
         for (j = 0; j < size; j++) {
         value = bitmap [rowIndex];
         rgb [0] = (byte) (value & 0xFF);
         rgb [1] = (byte) ((value >> 8) & 0xFF);
         rgb [2] = (byte) ((value >> 16) & 0xFF);
         fo.write (rgb);
         if (rowCount == biWidth) {
         padCount += pad;
         for (i = 1; i <= pad; i++) {
         fo.write (0x00);
         rowCount = 1;
         rowIndex = lastRowIndex - biWidth;
         lastRowIndex = rowIndex;
         else
         rowCount++;
         rowIndex++;
         //--- Update the size of the file
         bfSize += padCount - pad;
         biSizeImage += padCount - pad;
         catch (Exception wb) {
         wb.printStackTrace ();
         * writeBitmapFileHeader writes the bitmap file header to the file.
         private void writeBitmapFileHeader () {
         try {
         fo.write (bfType);
         fo.write (intToDWord (bfSize));
         fo.write (intToWord (bfReserved1));
         fo.write (intToWord (bfReserved2));
         fo.write (intToDWord (bfOffBits));
         catch (Exception wbfh) {
         wbfh.printStackTrace ();
         * writeBitmapInfoHeader writes the bitmap information header
         * to the file.
         private void writeBitmapInfoHeader () {
         try {
         fo.write (intToDWord (biSize));
         fo.write (intToDWord (biWidth));
         fo.write (intToDWord (biHeight));
         fo.write (intToWord (biPlanes));
         fo.write (intToWord (biBitCount));
         fo.write (intToDWord (biCompression));
         fo.write (intToDWord (biSizeImage));
         fo.write (intToDWord (biXPelsPerMeter));
         fo.write (intToDWord (biYPelsPerMeter));
         fo.write (intToDWord (biClrUsed));
         fo.write (intToDWord (biClrImportant));
         catch (Exception wbih) {
         wbih.printStackTrace ();
         * intToWord converts an int to a word, where the return
         * value is stored in a 2-byte array.
         private byte [] intToWord (int parValue) {
         byte retValue [] = new byte [2];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
         return (retValue);
         * intToDWord converts an int to a double word, where the return
         * value is stored in a 4-byte array.
         private byte [] intToDWord (int parValue) {
         byte retValue [] = new byte [4];
         retValue [0] = (byte) (parValue & 0x00FF);
         retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
         retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
         retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
         return (retValue);
    }

    You dont have to write a whole program to read and write BMP files, rather I would recommend you to use latest version of JAVA.
    Java version 5 supports reading and writing of BMP images :)
    File file = new File("walkleft.bmp");
    BufferedImage bi = ImageIO.read(file);   // Here u can read bmp images
    ImageIO.write(BufferedImage, "bmp", new File("newimage.bmp"); //Same way you can write themCheers

  • How to Double BMP file

    it is needed to create a new BMP file exactly twice the height of an original BMP file(which is uncompressed), and consisting of two copies of the original image, one on top of the other .
    now I have modify the file size (ie. size of the bit map data+file size); doule the vaule of height, bit map data size, and calculate where the bit map data section stats(ie.the bit map data offset info)
    But now I am not sure hwo to duplicate the entirebit map data section, then how to useFileout putStream and write() method to create a new double BMP file
    Can anyone give me an example? Many thx.
    My code is following:
    import java.io.*;
    public class BMPDouble {
         public static void main(String[] args) throws IOException{
              File bmp= new File(args[0]);
              getBMPInfo(bmp);
         public static void getBMPInfo(File f) throws IOException {
              FileInputStream fis= new FileInputStream(f);
                   int bflen=14;  // 14 byte BITMAPFILEHEADER
                  byte bf[]=new byte[bflen];
                  fis.read(bf,0,bflen);
                  int bilen=40; // 40-byte BITMAPINFOHEADER
                  byte bi[]=new byte[bilen];
                  fis.read(bi,0,bilen);
                  int nsize = (((int)bf[5]&0xff)<<24)
                                  | (((int)bf[4]&0xff)<<16)
                                  | (((int)bf[3]&0xff)<<8)
                                  | (int)bf[2]&0xff;
                  int nheight = (((int)bi[11]&0xff)<<24)
                                  | (((int)bi[10]&0xff)<<16)
                                  | (((int)bi[9]&0xff)<<8)
                                  | (int)bi[8]&0xff;
                   int bmdsize = (((int)bi[23]&0xff)<<24)
                                  | (((int)bi[22]&0xff)<<16)
                                  | (((int)bi[21]&0xff)<<8)
                                  | (int)bi[20]&0xff;
                   int offsetInfo = (((int)bf[13]&0xff)<<24)
                                  | (((int)bf[12]&0xff)<<16)
                                  | (((int)bf[11]&0xff)<<8)
                                  | (int)bf[10]&0xff;
                   int newSize = nsize+bmdsize;
                   int newHeight = nheight*2;
                   int newBmdSize = bmdsize*2;
                   System.out.println("Size: "+newSize+" bytes");
                   System.out.println("Height: "+newHeight);
                   System.out.println("Bit Map Data Size: "+newBmdSize);
                   System.out.println("Bit Map Data offset: "+offsetInfo);
                   fis.close();

    thank you for code above, since it has some errors, so I change a little.
    but I am not sure why in incomeData arrary should be 256. ie.byte[ ] incomeData = new byte[256];
    whether it is also 14 bytes in new bit map file header and the rest is (256-14) bytes in new bit map info header? Please help me,thx.
    My code is now following:
    import java.io.*;
    public class BMPDouble {
         public static void main(String[] args) throws IOException{
              File bmp= new File(args[0]);
              File bmpDouble= new File(args[1]);
              getBMPInfo(bmp);
              getBMPInfo(bmpDouble);
         public static void getBMPInfo(File f) throws IOException {
              FileInputStream fis= new FileInputStream(f);
              FileOutputStream fos= new FileOutputStream(f);
                   int bflen=14;  // 14-byte BITMAPFILEHEADER
                  byte bf[]=new byte[bflen];
                  fis.read(bf,0,bflen);
                  int bilen=40; // 40-byte BITMAPINFOHEADER
                  byte bi[]=new byte[bilen];
                  fis.read(bi,0,bilen);
                  int nsize = (((int)bf[5]&0xff)<<24)
                                  | (((int)bf[4]&0xff)<<16)
                                  | (((int)bf[3]&0xff)<<8)
                                  | (int)bf[2]&0xff;
                  int nheight = (((int)bi[11]&0xff)<<24)
                                  | (((int)bi[10]&0xff)<<16)
                                  | (((int)bi[9]&0xff)<<8)
                                  | (int)bi[8]&0xff;
                   int bmdsize = (((int)bi[23]&0xff)<<24)
                                  | (((int)bi[22]&0xff)<<16)
                                  | (((int)bi[21]&0xff)<<8)
                                  | (int)bi[20]&0xff;
                   int offsetInfo = (((int)bf[13]&0xff)<<24)
                                  | (((int)bf[12]&0xff)<<16)
                                  | (((int)bf[11]&0xff)<<8)
                                  | (int)bf[10]&0xff;
                   int newSize = nsize+bmdsize;
                   int newHeight = nheight*2;
                   int newBmdSize = bmdsize*2;
                   System.out.println("Size: "+newSize+" bytes");
                   System.out.println("Height: "+newHeight);
                   System.out.println("Bit Map Data Size: "+newBmdSize);
                   System.out.println("Bit Map Data offset: "+offsetInfo);
                   byte[] incomeData = new byte[256];
                   int bytesRead;
                   fos.write(NEWBITMAPFILEHEADER,0,NEWBITMAPFILEHEADER.length);
                   fos.write(NEWBITMAPINFOHEADER,0,NEWBITMAPINFOHEADER.length);
                   while((bytesRead=fis.read(incomeData))!= -1){
                        fos.write(incomeData,0,incomeData.length);
                   fis.reset();
                   while((bytesRead=fis.read(incomeData)) != -1){    
                        fos.write(incomeData,0,incomeData.length);
                   fos.flush();
                   fos.close();
                   fis.close();
    }

  • How to convert a jpeg file into a 1-bit bmp file (2 colors image)

    Hi. I�m having serious problems to convert a jpeg file into a 1-bit bmp file (2 colors image).
    I�m using FileSaver.saveAsBmp(String t) but what i get is a bmp image, but with 16M colors, but what i want is a 2 colors bmp file. A black and white image.
    Does anybody know how to do this? I�m really getting crazy with ths problem.
    Thanks in advance

    Hi opalo,
    this code may help you...
    import java.awt.*;
    import java.io.*;
    import java.awt.image.*;
    import javax.imageio.ImageIO;
    class Write1 extends Component {
    //--- Private constants
    private final static int BITMAPFILEHEADER_SIZE = 14;
    private final static int BITMAPINFOHEADER_SIZE = 40;
    //--- Private variable declaration
    //--- Bitmap file header
    private byte bitmapFileHeader [] = new byte [14];
    private byte bfType [] = {'B', 'M'};
    private int bfSize = 0;
    private int bfReserved1 = 0;
    private int bfReserved2 = 0;
    private int bfOffBits = BITMAPFILEHEADER_SIZE + BITMAPINFOHEADER_SIZE;
    //--- Bitmap info header
    private byte bitmapInfoHeader [] = new byte [40];
    private int biSize = BITMAPINFOHEADER_SIZE;
    private int biWidth = 50;
    private int biHeight = 70;
    private int biPlanes = 1;
    //private int biBitCount = 24;
    private int biBitCount = 1;
    private int biCompression = 0;
    private int biSizeImage = 0x030000;
    private int biXPelsPerMeter = 0x0;
    private int biYPelsPerMeter = 0x0;
    private int biClrUsed = 0;
    private int biClrImportant = 0;
    //--- Bitmap raw data
    private int bitmap [];
    //--- File section
    private FileOutputStream fo;
    //--- Default constructor
    public Write1() {
    public void saveBitmap (String parFilename, Image parImage, int
    parWidth, int parHeight) {
    try {
    fo = new FileOutputStream (parFilename);
    save (parImage, parWidth, parHeight);
    fo.close ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * The saveMethod is the main method of the process. This method
    * will call the convertImage method to convert the memory image to
    * a byte array; method writeBitmapFileHeader creates and writes
    * the bitmap file header; writeBitmapInfoHeader creates the
    * information header; and writeBitmap writes the image.
    private void save (Image parImage, int parWidth, int parHeight) {
    try {
    convertImage (parImage, parWidth, parHeight);
    writeBitmapFileHeader ();
    writeBitmapInfoHeader ();
    writeBitmap ();
    catch (Exception saveEx) {
    saveEx.printStackTrace ();
    * convertImage converts the memory image to the bitmap format (BRG).
    * It also computes some information for the bitmap info header.
    private boolean convertImage (Image parImage, int parWidth, int parHeight) {
    int pad;
    bitmap = new int [parWidth * parHeight];
    PixelGrabber pg = new PixelGrabber (parImage, 0, 0, parWidth, parHeight,
    bitmap, 0, parWidth);
    try {
    pg.grabPixels ();
    catch (InterruptedException e) {
    e.printStackTrace ();
    return (false);
    pad = (4 - ((parWidth * 3) % 4)) * parHeight;
    biSizeImage = ((parWidth * parHeight) * 3) + pad;
    bfSize = biSizeImage + BITMAPFILEHEADER_SIZE +
    BITMAPINFOHEADER_SIZE;
    biWidth = parWidth;
    biHeight = parHeight;
    return (true);
    * writeBitmap converts the image returned from the pixel grabber to
    * the format required. Remember: scan lines are inverted in
    * a bitmap file!
    * Each scan line must be padded to an even 4-byte boundary.
    private void writeBitmap () {
    int size;
    int value;
    int j;
    int i;
    int rowCount;
    int rowIndex;
    int lastRowIndex;
    int pad;
    int padCount;
    byte rgb [] = new byte [3];
    size = (biWidth * biHeight) - 1;
    pad = 4 - ((biWidth * 3) % 4);
    if (pad == 4) // <==== Bug correction
    pad = 0; // <==== Bug correction
    rowCount = 1;
    padCount = 0;
    rowIndex = size - biWidth;
    lastRowIndex = rowIndex;
    try {
    for (j = 0; j < size; j++) {
    value = bitmap [rowIndex];
    rgb [0] = (byte) (value & 0xFF);
    rgb [1] = (byte) ((value >> 8) & 0xFF);
    rgb [2] = (byte) ((value >> 16) & 0xFF);
    fo.write (rgb);
    if (rowCount == biWidth) {
    padCount += pad;
    for (i = 1; i <= pad; i++) {
    fo.write (0x00);
    int b = 1200;
    fo.write(b);
    rowCount = 1;
    rowIndex = lastRowIndex - biWidth;
    lastRowIndex = rowIndex;
    else
    rowCount++;
    rowIndex++;
    //--- Update the size of the file
    bfSize += padCount - pad;
    biSizeImage += padCount - pad;
    catch (Exception wb) {
    wb.printStackTrace ();
    * writeBitmapFileHeader writes the bitmap file header to the file.
    private void writeBitmapFileHeader () {
    try {
    fo.write (bfType);
    fo.write (intToDWord (bfSize));
    fo.write (intToWord (bfReserved1));
    fo.write (intToWord (bfReserved2));
    fo.write (intToDWord (bfOffBits));
    catch (Exception wbfh) {
    wbfh.printStackTrace ();
    * writeBitmapInfoHeader writes the bitmap information header
    * to the file.
    private void writeBitmapInfoHeader () {
    try {
    fo.write (intToDWord (biSize));
    fo.write (intToDWord (biWidth));
    fo.write (intToDWord (biHeight));
    fo.write (intToWord (biPlanes));
    fo.write (intToWord (biBitCount));
    fo.write (intToDWord (biCompression));
    fo.write (intToDWord (biSizeImage));
    fo.write (intToDWord (biXPelsPerMeter));
    fo.write (intToDWord (biYPelsPerMeter));
    fo.write (intToDWord (biClrUsed));
    fo.write (intToDWord (biClrImportant));
    // DataOutputStream temp = new DataOutputStream(fo);
    // int m = 32;
    // temp.writeInt(m);
    catch (Exception wbih) {
    wbih.printStackTrace ();
    * intToWord converts an int to a word, where the return
    * value is stored in a 2-byte array.
    private byte [] intToWord (int parValue) {
    byte retValue [] = new byte [2];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x00FF);
    return (retValue);
    * intToDWord converts an int to a double word, where the return
    * value is stored in a 4-byte array.
    private byte [] intToDWord (int parValue) {
    byte retValue [] = new byte [4];
    retValue [0] = (byte) (parValue & 0x00FF);
    retValue [1] = (byte) ((parValue >> 8) & 0x000000FF);
    retValue [2] = (byte) ((parValue >> 16) & 0x000000FF);
    retValue [3] = (byte) ((parValue >> 24) & 0x000000FF);
    return (retValue);
    class Writebmp
         public static void main(String args[])
              //Image img = Toolkit.getDefaultToolkit().getImage("jatin.bmp");
              try
              File filename = new File("jatin_test.bmp");
              BufferedImage image = ImageIO.read(filename);
              Graphics graphics = image.getGraphics();
              graphics.drawString("&#2313;&#2332;&#2327;&#2352;",10,30);
              Write1 w = new Write1();
              Image img = Toolkit.getDefaultToolkit().getImage("jatin_test.bmp");
              w.saveBitmap("jatin_test.bmp",img,200,200);
              catch (IOException e)
    System.err.println ("Unable to write to file");
    System.exit(-1);
    }

  • JS scripted needed to add custom text plus filename to file info in document title

    Would greatly appreciate any help with this one...
    JS script to add custom text plus filename to file info in document title
    many thanks

    Super :O)
    I have a folder of say 50 images and I want to run a JS script batch
    example in the document title :  image Nr 81205
    custom text is "image Nr" +  file name "81205"
    activeDocument.info.title =" image Nr" + decodeURI(activeDocument.name);
    would this be correct without seening the file ext
    many thanks

  • HELP! Files won't open and previously had Firefox icon instead of DW icons!  Leap Year thing?

    Hi!  I went to update my website, which I do every night before the first day of every month and all the files had a FIrefox icon instead of the usual Dreamweaver one.  I have shut down, reinstalled DW MX 2004 but the files still do not open.  The icons have now changed to DW but they are not opening with right click, opening from Applications folder, double clicking the file, from get info and open with DW.  I am stumped. HELP!  Need to update for March 1st.
    Is it something to do with Leap Year 29th Feb?  Checked the clock in preferences but can't see how this affects it.
    Firefox is always updated but the latest version does not seem to be as efficient as previous upgrades.  We installed Chrome as well.  Do they interfere with each other?

    Hi Ken
    I wish the 7.1 updater download had helped but it didn¹t.  All the files
    were backed up before the installation, which went fine.
    Mac 10.5.8
    We used Disc Warrior to defrag the hard drive, which did not make a
    difference.
    We recently started using Chrome, so now have 3 browsers in the dock,
    Safari, Firefox and Chrome.  Do they interfere in any way with each other?
    The files, which I hadn¹t touched for a month as I update on a monthly
    basis, initially had the Firefox icon.
    Below is the message to send to Apple, which did not go through their report
    system!  A little disillusioned with the service!
    Model: iMac9,1, BootROM IM91.008D.B08, 2 processors, Intel Core 2 Duo, 3.06
    GHz, 4 GB
    Graphics: kHW_NVidiaGeForceGT130Item, NVIDIA GeForce GT 130,
    spdisplays_pcie_device, 512 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E),
    Broadcom BCM43xx 1.0 (5.10.91.22)
    Bluetooth: Version 2.1.9f10, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD1001FALS-40K1B0, 931.51 GB
    Serial ATA Device: PIONEER DVD-RW  DVRTS08
    USB Device: Built-in iSight, (null) mA
    USB Device: Keyboard Hub, (null) mA
    USB Device: iLok, (null) mA
    USB Device: Apple Optical USB Mouse, (null) mA
    USB Device: Apple Keyboard, (null) mA
    USB Device: Deskjet 3840, (null) mA
    USB Device: BRCM2046 Hub, (null) mA
    USB Device: Bluetooth USB Host Controller, (null) mA
    USB Device: IR Receiver, (null) mA
    FireWire Device: d2 quadra (button), LaCie, 800mbit_speed
    Does not mean a thing to me.
    I am not late with updating the site, which is about New Zealand culture,
    month by month (www.englishteacher.co.nz). Probably only the third time I
    have been late since 2005. Not a huge amount of traffic, ~300 a month and
    free access to content but I would like to solve this problem.
    Could a reciprocal link have caused a problem?
    At my wits end.
    I really appreciate the help though.
    Cheers Yvonne
    From: Ken Binney <[email protected]>
    Reply-To: <[email protected]>
    Date: Wed, 29 Feb 2012 06:42:11 -0700
    To: Yvonne and Bill Hynson <[email protected]>
    Subject: HELP! Files won't open and previously had Firefox
    icon instead of DW icons!  Leap Year thing?
    Re: HELP! Files won't open and previously had Firefox icon instead of DW
    icons!  Leap Year thing?
    created by Ken Binney <http://forums.adobe.com/people/Ken+Binney>  in
    Dreamweaver - View the full discussion
    <http://forums.adobe.com/message/4236682#4236682>
    Not necessarily related, but did you also install the 7.1
    updater? http://www.adobe.com/support/dreamweaver/downloads_updaters.html
     Windows or MAC?
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either reply
    to this email or visit the message page:
    http://forums.adobe.com/message/4236682#4236682 To unsubscribe from this
    thread, please visit the message page at
    http://forums.adobe.com/message/4236682#4236682. In the Actions box on the
    right, click the Stop Email Notifications link. Start a new discussion in
    Dreamweaver by email
    <mailto:[email protected].ad
    obe.com>  or at Adobe Forums
    <http://forums.adobe.com/choose-container!input.jspa?contentType=1&container
    Type=14&container=2240>  For more information about maintaining your forum
    email notifications please go to
    http://forums.adobe.com/message/2936746#2936746.

  • How to create a custom panel in the right way (without having an empty panel in the file info) ?

    Hi Everyone
    My name is Daté.
    I'm working in the fashion industry as a designer and Design consultant to help fashion brands improving the design workflow by using Adobe softwares and especially Illustrator.
    I'm not a developper, but i'm very interested about the possibility to introduce xmp technology to provide more DAM workflows in the fashion industry.
    Fashion designers produce a lot of graphical objects in illustrator or Photoshop. Unfortunately they are faced to a big challenge which is about how to manage, search, classify and get this files faster. Of course PDM system or PLM system are used in the Fashion industry to manage data, but for many companies, implemanting this kind of database is very complex.
    When i look at what you can do with xmp, it seems to be an interesting way of managing design files, then i started to follow Adobe instruction to try to build a custom panel.
    The main idea is to (Theory) :
    create custom panels used by fashion designers to classify their design files.
    Use Adobe Bridge to search files, create smart collection to make basic reports in pdf and slideshows
    Find someone to make a script able to export metadata in xml files
    Use indesign and the xml file to generate automatically catalogues or technical sheets based on xmp values
    I have created a custom panel by using the generic panel provided by Adobe and i have modified the fields to feet with the terms used in the fashion industry and it works well.
    But unfortunately, when i try to create my own custom panel from scratch with Flashbuilder (4.6) and the Adobe CSExtensionBuilder_2 (Trial version), it doesn't work!
    Here is the process :
    I have installed flashbuilder 4.6
    I have download the XMP Fileinfo SDK 5.1 and placed the com.adobe.xmp.sdk.fileinfo_fb4_1.1.0.jar in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\eclipse\plugins
    In Flashbuilder, i have created a new project and select xmp Custom panel
    The new project is created in flashbuilder with a field with A BASIC Description Field
    To generate the panel, right click the project folder and select xmp / Publish Custom Panel
    The panel is automatically generated in the following folder : C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels
      Go to illustrator, Open the file Info
    The panel appears empty
    The others panel are also empty
    The panel is created and automatically placed in the right folder, but when you open it in Illustrator by selecting the File Info option in the File Menu, this custom panel appears empty!!! (only the title of the tab is displayed). This panel also prevent the other panels to be displayed.
    When you delete this custom panels from the folder C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels and go back to the File Info, the other panels display their content properly.
    I also try to use the plugin XMP Namespace designer to create my own namespace. this plugin is also able to generate a custom panel, but this one also appears empty in AI or Photoshop.
    I try to follow the process described in Adobe xmp documentation many times, but it didn't works.
    It seems that many peaople have this issue, but i dodn't find a solution in the forum.
    I try to create a trust file (cfg), but it didn't work.
    It would be so kind if you can help me to understand why i can't create a custom panel normally and how to do it in the right way.
    Thanks a lot for your help,
    Best regards,
    Daté 

    Hi Sunil,
    After many trial, i realize the problem was not coming from the trust file, but from the way i have created the custom panel.
    There is 2 different ways, the first described below is not working whereas the second is fine :
    METHOD 1 :
    I have downloaded the XMP-Fileinfo-SDK-CS6
    In the XMP-Fileinfo-SDK-CS6 folder, i copied the com.adobe.xmp.sdk.fileinfo_fb4x_1.2.0.jar plugin from the Tools folder and i pasted it in the plugind folder of Flashbuilder 4.6
    The plugin install an XMP project
    In Flashbuilder 4.6 i have created a new project (File / New /Project /XMP/XMP Custom Panel)
    A new xmp project is created in flashbuilder.
    You can publish this project by right clicking the root folder and selecting XMP / Publish Custom Panel
    The custom file info panel is automatically published in the right location which is on Mac : /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0 or /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/4.0
    Despite the publication of the custom file info panel and the creation of a trust file in the following location : "/Library/Application Support/Macromedia/FlashPlayerTrust", the panel is blank in Illustrator.
    I try this way several times, with no good results.
    METHOD 2 :
    I have installed Adobe CSExtensionBuilder 2.1 in Flash Builder
    In FlashBuilder i have created a new project (File / New /Project /Adobe Creative Suite Extension Builder/XMP Fileinfo Panel Project)
    As the system display a warning about the version of the sdk to use to create correctly a custom file info, I changed the sdk to sdk3.5A
    The warning message is : "XMP FileInfo Panel Projects must be built with Flex 3.3, 3.4 or 3.5 SDK. Building with Flex 4.6.0 SDK may result in runtime errors"
    When i publish this File info panel project (right click the root folder and select Run as / Adobe illustrator), the panel is published correctly.
    The last step is to create the trust file to display the fields in the panel and everything is working fine in Illustrator.
    The second method seems to be the right way.
    For sure something is missing in the first method, and i don't understand the difference between the XMP Custom Panel Project and the XMP Fileinfo Panel Project. Maybe you can explain it to me.
    So what is the best solution ? the right sdk to use acording to the creative suite (the system asks to use 3.3 or 3.5 sdk for custom panels, so why ?)
    I'm agree with Pedro, a step by step tutorial about this will help a lot of peaople, because it's not so easy to understand!!!
    Sunil, as you belong to the staff team, can you tell me if there is  :
    A plugin or a software capable to extract the XMP from llustrator files to generate XML workflows in Indesign to create catalogues
    A plugin to allow indesign to get custom XMP in live caption
    A plugin to allow Bridge to get custom XMP in the Outputmode to make pdf or web galeries from a smart collection
    How can you print the XMP data with the thumbnail of the file ?
    Thanks a lot for your reply.
    Best Regards
    Daté

  • Save an 16 bits grayscale image in a bmp file

    Hello,
    I need to save a bmp file using an I16 grayscale picture.
    I already did the following VI that saves the picture in bmp but the colors are not good : there is only blue levels.
    I think there is a problem with the type of data that feed "array to color image" or with the colorscale but i don't manage to find where.
    Hope you can help me.
    Tank you.
    Ben 

    Hi
    The arraytocolorimage expects U32 because expects a RGB color, try this instead of the "toU32"
    Rodrigo Cuenca
    www.cidesi.com

  • File Info Dialog problem

    Hi,
    Not sure if this is a bug or if I'm just missing a setting someplace.
    Problem: I write a lengthy caption in the "Description" window of the File Info dialog. Later on I want to use that same caption on a different image.
    Using CS3 on Windows I can click on the flyout arrow next to the "Description" window and input the entire caption.
    Using CS3 on Mac, the flyout will only input sections of the caption. It seems like the Mac version breaks the caption apart based on any punctuation that is in the caption.
    Ex. If my caption is "01 July 2008, Los Angeles, California, USA - Paul has issues with Photoshop, causing a problem when captioning files."
    Windows puts the entire caption in the field. Mac breaks it down like this:
    01 July 2008
    Los Angeles
    California
    USA
    Paul has issues with Photoshop
    causing a problem when captioning files
    I don't recall this being an issue with PS7 or CS1. Am I missing something or is this just the way CS3 works?
    Thanks in advance for any help!
    -Paul

    I narrowed down the issue even more. Non-English languages have their strings, tags, and texts stored in a file named strings.txt in a language-specific subdirectory in the Resources directory in the Adobe Bridge CS6 program folder. The strings.txt file includes, among many other things, a language-specific decimal separator character—which in English is a dot but in many non-English languages is a comma.
    When I replace the comma as the decimal separator in the German-language strings.txt file by a dot then all of sudden the f-stops are displayed correctly in the thumbnail pane ... well, except that e. g. "f/2,8" now gets displayed as "f/2.8" which in German is wrong but acceptable—and definitely much better than "f/2,0" which is unacceptably wrong when the actual value is 2.8.
    The idea to try this dawned on me when I noticed that in some places in the metadata pane, decimal numbers are displayed with a comma (respecting the decimal separator character given in strings.txt); in other places, they're displayed with a decimal point (ignoring strings.txt). Those using a dot are correct; those using a comma are wrong. So there's two bugs in Bridge rather than just one. First bug: In some places, the language-specific decimal separator character is ignored. Second bug: When it is not ignored then the number displayed will be wrong.
    So my workaround now is to use a dot as the decimal separator character rather than a comma.

  • How to make something default in File Info..

    Hi All,
    i would like to know that do we have any settings where we can set the custom panel as the default panel while loading the "File->File Info..." ?
    any possiblility for calling the "File->File Info..." from the plugin and setting the custom panel as default
    Help Me!
    Thanks
    Srinivas

    Hi Patterson,
    Thanks again for your reply,
    Can we call a java-script or vb-script from a plug-in?
    can i have a sample code for that or specific SDK where i can call the script from a plugin
    this is my code:
    1 get the total count of menu items
    2 compare that with the require one ("File Info...")
    and next
    AIErr result = sActionManager->AINewActionParamValue(&valueParameterBlock1);
    result = sActionManager->AIActionSetString(valueParameterBlock1,'itnm',"CFile Info");
    result = sActionManager->AIActionSetString(valueParameterBlock1,'lcnm', "File Info");
    result = sActionManager->AIActionSetInteger(valueParameterBlock1,'cmid', -2130705922);
    result = sActionManager->PlayActionEvent("adobe_commandManager",kDialogOff,valueParameterBlock1);
    i am stuck out here, not able to move an inch from here
    suggest and help me
    Thanks
    Srinivas

  • How do I select multiple files under "Get File Info"and lock or unlock all?

    How do I select multiple files under "Get File Info"and lock or unlock them all? It seems to do it automatically when I have 10 or more selected. But how do I lock or unlock 5 or 6 files in one swoop? Thanks

    Select the desired files then press OPTION and select Show Inspector from the Finder's File menu.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Error while uploading *.BMP file using SE78

    Hi
    I am trying to upload a BMAP file from presentation server onto the document server using SE78.
    I am facing an error saying
    "This is not a *.BMP file(they begin with <> "BM")"
    Message no. TD874
    I have the necessary company logo in this file and I want to put this in the sapscript.
    Is there some formatting that needs to be done to the bitmap file before importing in SE78.
    Please help!
    Thanks
    Bala

    hi
    Convert BMP from <b>Command prompt using ren command</b>
    then follow below process
    Go to transaction SE78.
    Follow the path given below (on the left windows box) :-
    SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER --> GRAPHICS --> BMAP
    Enter the name of the graphics file on the right side and Go to the menu GRAPHIC --> IMPORT
    The program is RSTXLDMC, the logo needs to be save in .TIF format.
    Use transaction SE78 to inmport graphics to SAP.
    In the form painter, you can either include directly to the form using menu Edit->Graphic->Create or using the INCLUDE statement in a window.
    To use an INCLUDE stanment, goto into the woindow script editor and use menu Include->Graphic. The include can look like this for a bitmap:
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
    regards
    vinod

  • Windows 8.1 BSOD please help Minidump file attached

    Windows 8.1 BSOD please help Minidump file and dxdiag info file link is below,
    This BSOD frequency is about once every  1 hour to 4 hours,
    Memtest passed with one pass on the one chip of 4GB
    Brand new 8.1 install
    https://drive.google.com/file/d/0B39S6eNyRvOHRnZHRG1Jd1lwT2M/view?usp=sharing
    https://docs.google.com/document/d/1XueM-ov7wjfePJh45Pp3fg1QSSzFBqMuO1tfr9GZm8k/edit?usp=sharing

    This is a crash related to some type of hardware failure. Please refer to the Wiki link below, for some troubleshooting tips.
    BugCheck Code 124 Co-Authored by ZigZag3143& JMH3143
    http://answers.microsoft.com/en-us/windows/wiki/windows_other-system/bugcheck-code-124/98c998d2-447a-40ce-ae1f-8211e355f14d
    WARNING: Whitespace at end of path element
    Symbol search path is: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
    Executable search path is:
    Windows 7 Kernel Version 9600 MP (2 procs) Free x64
    Product: WinNt, suite: TerminalServer SingleUserTS
    Built by: 9600.16422.amd64fre.winblue_gdr.131006-1505
    Machine Name:
    Kernel base = 0xfffff800`c0e7b000 PsLoadedModuleList = 0xfffff800`c113f990
    Debug session time: Tue Mar 3 23:19:34.178 2015 (UTC - 5:00)
    System Uptime: 0 days 0:00:04.947
    Loading Kernel Symbols
    Loading User Symbols
    Mini Kernel Dump does not contain unloaded driver list
    * Bugcheck Analysis *
    Use !analyze -v to get detailed debugging information.
    BugCheck 124, {0, ffffe000016f88f8, 0, 0}
    Probably caused by : hardware
    Followup: MachineOwner
    1: kd> !analyze -v
    * Bugcheck Analysis *
    WHEA_UNCORRECTABLE_ERROR (124)
    A fatal hardware error has occurred. Parameter 1 identifies the type of error
    source that reported the error. Parameter 2 holds the address of the
    WHEA_ERROR_RECORD structure that describes the error conditon.
    Arguments:
    Arg1: 0000000000000000, Machine Check Exception
    Arg2: ffffe000016f88f8, Address of the WHEA_ERROR_RECORD structure.
    Arg3: 0000000000000000, High order 32-bits of the MCi_STATUS value.
    Arg4: 0000000000000000, Low order 32-bits of the MCi_STATUS value.
    Debugging Details:
    BUGCHECK_STR: 0x124_AuthenticAMD
    CUSTOMER_CRASH_COUNT: 1
    DEFAULT_BUCKET_ID: VISTA_DRIVER_FAULT
    PROCESS_NAME: System
    CURRENT_IRQL: 0
    STACK_TEXT:
    ffffd000`2087f6c0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : nt!WheapCreateLiveTriageDump+0x81
    STACK_COMMAND: kb
    FOLLOWUP_NAME: MachineOwner
    MODULE_NAME: hardware
    IMAGE_NAME: hardware
    DEBUG_FLR_IMAGE_TIMESTAMP: 0
    FAILURE_BUCKET_ID: X64_0x124_AuthenticAMD_PROCESSOR_BUS_PRV
    BUCKET_ID: X64_0x124_AuthenticAMD_PROCESSOR_BUS_PRV
    Followup: MachineOwner
    1: kd> !errrec ffffe000016f88f8
    ===============================================================================
    Common Platform Error Record @ ffffe000016f88f8
    Record Id : 01d0563268a81312
    Severity : Fatal (1)
    Length : 928
    Creator : Microsoft
    Notify Type : Machine Check Exception
    Timestamp : 3/4/2015 4:19:34
    Flags : 0x00000002 PreviousError
    ===============================================================================
    Section 0 : Processor Generic
    Descriptor @ ffffe000016f8978
    Section @ ffffe000016f8a50
    Offset : 344
    Length : 192
    Flags : 0x00000001 Primary
    Severity : Fatal
    Proc. Type : x86/x64
    Instr. Set : x64
    Error Type : BUS error
    Operation : Generic
    Flags : 0x00
    Level : 3
    CPU Version : 0x0000000000100f42
    Processor ID : 0x0000000000000000
    ===============================================================================
    Section 1 : x86/x64 Processor Specific
    Descriptor @ ffffe000016f89c0
    Section @ ffffe000016f8b10
    Offset : 536
    Length : 128
    Flags : 0x00000000
    Severity : Fatal
    Local APIC Id : 0x0000000000000000
    CPU Id : 42 0f 10 00 00 08 02 00 - 09 20 80 00 ff fb 8b 17
    00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
    00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00
    Proc. Info 0 @ ffffe000016f8b10
    ===============================================================================
    Section 2 : x86/x64 MCA
    Descriptor @ ffffe000016f8a08
    Section @ ffffe000016f8b90
    Offset : 664
    Length : 264
    Flags : 0x00000000
    Severity : Fatal
    Error : BUSLG_OBS_ERR_*_NOTIMEOUT_ERR (Proc 0 Bank 4)
    Status : 0xba00001000020c0f

Maybe you are looking for