Convert a ( .BMP) onto row bits

hi,i have a problem on how to take an image as an input
and convert it into a row bit stream stored in an array
if anyone has an idea,i'll appreciate sending me a demo source code
thnx

Depends what you need in the bit array. Check out javax.awt.image.PixelGrabber, see if it's anything like what you need.

Similar Messages

  • Converting multiple bmp files to PDF using acrobat 7.0 from DOS prompt

    Hi,
    I have a requirement to convert multiple BMP files in a folder to one PDF.
    I can use multiple file conversion option in acrobat to combine and convert them to one PDF .. but I have 2000 such folder to conver to PDF.
    PDF should be name after the folder name.
    Is there a to automate this in acrobat.. or can we run this conversion from DOS prompt using commands.. so that I can create a bat file and have them converted. Pls let me know.
    Thanks
    Pugazh

    I have not tried BMP files, but do JPeg, GIF, TIFF, and PNG files regularly. I simply open Acrobat, then select the graphics files in explorer and drag & drop to Acrobat. I then organize the graphics if needed (using the pages tab) and save to a PDF.

  • Converting columns in to rows

    Hi All,
    Can any one plzz help me out how to convert columns in to rows.
    I am having data as follows:
    Date1 Date2 Date3 Date4 Date5 Date6
    I need the Out put as Below
    Date
    Date1
    Date2
    Date3
    Date4
    Date5
    Date6
    Thanks in Advance
    Regards
    Praveen

    you can do this by using OTN's search engine:
    http://forums.oracle.com/forums/search.jspa?objID=f75&q=converting+columns+into+raws

  • Converting key figures from rows to column using DSO and start routine

    Hi SDNer:
    I need some help to convert key figures from rows to column.
    The source is DSO 1 and I am thinking about writing ABAP in the start routine to do the conversion. The target is DSO2.
    Below is the  more detail information with example. Basically, for each record in DSO 1 I need to create 3 records (because there are 3 KF's) and output to DSO2.
    I would really appreciate some help on this.Thank you.
    Tony
    DSO 1 data format (SOURCE)
    Period   ID   KF1  KF2  KF3
    200702 100  300  200   750
    Output to DSO 2 (TARGET)
    Period   ID    KF  LABEL
    200702 100  300  KF1
    200702 100  200  KF2
    200702 100  750  KF3

    This is the code in BI 7.0.
    u need to put a field "Label" in DSO1. u dont need to populate this in DSO1 but it helps the code to populate the field in DSO2.
    DATA: wa_result TYPE _ty_s_sc_1,
    t_result TYPE STANDARD TABLE OF _ty_s_sc_1.
    DATA:counter(2) TYPE n.
    LOOP AT SOURCE_PACKAGE INTO wa_result.
    counter =0.
    while counter < 3 .
    wa_result- Period = wa_result-Period.
    wa_result- ID = wa_result-ID.
    if counter  = 0.
    wa_result- KF1 = wa_result-KF1.
    wa_result- Label = 'KF1'.
    elseif counter = 1.
    wa_result- KF1 = wa_result-KF2.
    wa_result- Label = 'KF2'.
    else.
    wa_result- KF1 = wa_result-KF3.
    wa_result- Label = 'KF3'.
    endif.
    APPEND wa_result TO t_result.
    counter = counter+1.
    endwhile.
    endloop.
    CLEAR: SOURCE_PACKAGE,wa_result.
    LOOP AT t_result INTO wa_result.
    APPEND wa_result TO SOURCE_PACKAGE.
    ENDLOOP.

  • How do i convert 8 bit BMP to 24 bit?

    when i snap and image from a PXI-1411, i get an 8-bit BMP.
    i need 24-bit for my picture analysis prog.
    one of you knows im sure  
    any ideas

    Image Toolbox supports 8 bit to 24 bit convert.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

  • How can i convert .gif/.bmp/.jpeg file to labview code(vi)?

    Hi,
    I am having a .gif file which consists of vi code. I want to convert that .gif file into vi & complile it. I am using LV 6.1 & 7 express. Is is possible?
    Reverse is surely possible like we can convert the vi diagram into .gif/.bmp file? But above i dont know?
    Your help will really appreciated.
    Best Regards,
    Nirmal

    If I understand your desire, it's to be able to convert a graphical image (bit map or screen photo, for example) into a functional block of LabView code, with all of the wire work done, etc. This is a task approximately equivalent to performing optical character recognition.
    In the case of a non-system subvi, unless that subvi is loaded, so that it's graphical representation can be recognized by comparing the bit-map image for the subvi on the photo with the available vi's.
    Another difficult problem to solve is when the bit-map has been scaled up or down, such that there's a pixel count mismatch between the VI iconic bitmap and the photographic bitmap you wish to import into your code diagram.
    And if you try to do recognition on objects that have h
    ad their RGB color representations changed, as can happen when JPG compression or other compression forms are used that reduce to total number of colors saved, that challenges the object recognition further.
    Also, what you're interested in having is only of value to Labview programmers, so there's not a very large market for such a tool to be sold to - unlike bitmaps of scanned text to ASCII or wordprocessor applications - traditional OCR software.
    All this ins't to say it can't be done, but that it's difficult, and for the person or company that undertakes it, the sales potential is limited.
    Regards,
    Bob Donnell

  • Converting Color BMP to Monochrome BMPs

    Hi all,
    Well I have this problem where I have to compose a new image using
    several existing images. The existing images maybe color BMPs but
    the composite image should include these images and the resulting
    composite image must be a Monochrome BMP.
    Any ideas where I should start looking ?
    Regards
    Gagan

    Oh ! Thank you again ! Finally, got it !
    Actually, I had to try on a little bit of things before succeeding. Well you know, I had created the fixup, but couldn't find it back, etc. Anyway, finally got it !
    I had to modify it a little bit, by adding a second set of values for RGB, it wouldn't work with only CMYK, don't know why.. By deduction, I tried values, and it worked. I couldn't have only "convert to spot color" in the list, there was still others fixups.. Well, the point is I couldn't find just a single "convert to spot", seems like I had none?! Here's the printscreen ..
    So the result is good considering that some lines are thinner than others, they seem to be in gray at first, but when looking further (or zooming in) I can see they're really in black, they just print thinner as the pdf made from autocad had specific lineweights (property from autocad).
    Thank you very much again!!!

  • Creating pie chart diagram in java  and converting into BMP file

    hi all ,
    my req. is to create draw a pie chart diagram and store
    the picture in BMP. it is Possible. if so how ?
    cheers
    senthil

    Hi Senthil,
    This response is a bit late but I hope it can help in some way.  Your requirement (to create draw a pie chart diagram and store the picture in BMP) is possible and actually quite easy if you don't mind using two open source libraries.  In his previous response to this thread, Detlev mentioned JFreeChart for as a solution for charting however he also mentioned that it lacks support for BMP.  Although this is true, you can use the JFreeChart library (http://www.jfree.org/jfreechart/index.html) in conjunction with an imaging library to meet your requirement.  I have used JFreeChart on multiple projects and I highly recommend it.  For the imaging library you have many options, however the only one I have used is The Java Imaging Utilities (JIU - http://jiu.sourceforge.net/).  Using these two class libraries, you can generate your pie chart and save it to a BMP file with the following block of code:
         try
             JFreeChart chart = this.createChart();
             FileOutputStream streamOut = new FileOutputStream("your/files/path/BMPfile.bmp");
             BufferedImage image = chart.createBufferedImage(600, 300);
             if(image == null)
                  reportError("Chart Image is NULL!!!!!!!!");
                  return(false);
             RGB24Image rgbImage = ImageCreator.convertImageToRGB24Image(image);
             Codec codec = new BMPCodec();
             codec.setImage(rgbImage);
             codec.setOutputStream(streamOut);
             codec.process();
             codec.close();
             streamOut.flush();
             streamOut.close();
        }catch(IOException ioExcept)
             // throw or handle IOException...
             return(false);
        }catch(OperationFailedException opFailedExcept)
             // throw or handle OperationFailedException...
             return(false);
    The first line inside the catch block calls a helper method that should create the actual chart using the JFreeChart library.  Once you have your chart instance (all chart types are represented using the JFreeChart class), you can then retrieve a BufferedImage of the chart (JFreeChart.createBufferedImage(int width, int height);).  In our situation, the BufferedImage class will act as an "intermediate" class, for both libraries (the charting and imaging) can make sense of BufferedImages.  The rest of the code deals with storing the generated chart (the BufferedImage) as a BMP file to disk.  The RGB24Image, Codec, BMPCodec, CodecMode, and OperationFailedException classes are all part of the JIU library.  Also, note that the storage  source is not solely limited to a File on disk; the Codec.setOutputStream(OutputStream os) method will accept any subclass of OutputStream.  This implies that not only can you store to the actual App Server disk (where your app is running) but also to sources such as Knowledge Management (KM) resources or even directly to the clients browser (in the case of an iView). 
    Once again, sorry for the late response and let me know if you have any questions regarding the code above. 
    Regards,
    Michael Portner

  • Converting column store to row store

    Hello Everyone,
    I have a question related to the Column store to Row Store conversion:
    Is it always necessary to perform the conversion when all connections to the system have been stopped from the application level?
    what would be the loss if the conversion is performed with the applications or connections to the system still open?
    Regards,
    Vinay

    Hi Vinay,
    Can you explain your questions more clearly? Do you mean convert a column table to a row table?
    Best regards,
    Wenjun

  • PID (FPGA) - Convert 16bit output to 24 bit

    Hello,
    Im controlling a device in Closed Loop using the PID (FPGA) vi.  The output of this is I16, but it would be nice if I could convert it to a I24, or I32.  The output of this vi is sent to two different Analog Outs on my Op-Amp circuitry.  The op-amps are set up as summing amps, so it would be ideal to send the lower 8 bits to the first AO (fine output), and the top 16 (15+sign) to the second AO (coarse output).
    I haven't found an easy way to do this yet.  So far, I've been thinking of just using the I16 output value, split it into two 8 bit numbers.  The lower 8 bit controls my first AO.  The upper 8 bits is combined with another 8 bit register that gets incremented everytime the 8-bit number becomes saturated, and controls the 2nd AO.
    I've attached a pic to make it more clear (I hope?).  If I should be doing this another way, please let me know.
    Or maybe I need to be controlling this system with 2 parrallel PIDs? One controlling the coarse control, the other the fine.  The feedback would be the same for both PIDs. 

    Hi bones,
    even on FPGA you should be able to use "split numbers" and "join numbers" functions...
    And you can use boolean operators on numbers. Like sign = I16 && 0x8000
    That way you would get away from all those number TO boolean array TO cluster of booleans TO unbundle TO bundle TO boolean array TO number conversions (also called RubeGoldberg, search for this in the forum!).
    Message Edited by GerdW on 12-07-2009 08:52 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Is it safe to convert vivado generated Kintex 7 .bit file into SVF file with ISE14.7 Impact?

    Hi,
    I need to configure Kintex 7 chips in our system with SVF files (they will be accessible via SVF capable hardware only).
    Unfortunately Vivado doesn't support generation of SVF files (yet?).
    It seems, that I can convert the .bit file generated by Vivado with Impact from ISE14.7.
    Are there any risks associated with such mixing of tools?
    TIA & Regards,
    Wojtek
     

    We have an early access for svf generation 2015.1. You need to contact Xilinx FAE or open a service request to get the flow.
    Public access for SVF generation will be available from 2015.3 version.

  • Convert from BMP- / PSD-file to Vector- / AI-file

    Hello!
    I have a detailed topographic map in raster format as a PSD- and a BMP-file. I would like to convert it to a vector- / AI-file!
    The aim is that I want to trace the entire raster map (very big area) using the Pen tool, because it would take enormous time to manually vectorize all land masses, lakes and elevation curves with more using the Pen tool.
    Do you have any good tips on how to do to avoid a lot of the manual work?
    I've tried "Image Tracing" in AI, but the problem is that it traced the map has got considerably worse quality and detail so that it can not even be anväbda to something sensible.
    Thanks in advance for your professional help!
    Sincerely Alexander from Sweden!
    I unfortunately need to use Google Translate when I'm not so good at English!

    Alexander,
    You may try to work with the settings for Image Trace and see whether you can improve the immediate result.
    After that, it may be possible to do some cleanup.
    But it all dpends on the actual map.
    In any case, recreating with the Pen Tool and maybe other tools is recommendable for high quality vector artwork, and takes time.

  • Convert file .bmp to .jpeg

    How to convert .bmp file into .jpeg or .gif using java technology.

    check the Java Advanced Imaging API:
    http://java.sun.com/products/java-media/jai/index.jsp

  • How do I batch Convert from 32 to 24 bit

    Is it with Wave burner if so, Please let me know. When i use Waveburner it does it to 16 bits. Please help. Thank you! These samples are for eventual use inside EXS

    Hi
    And iTunes is easier to use for this. My method: Using Finder, I drag my main iTunes folder (the one I use for listening to radio and such that contains all related playlists and folders) out of the Music folder to anyplace else. Then launch iTunes. It creates a new empty iTunes folder automatically, and iTunes is starting from a clean slate. *After setting iTunes conversion to .aif* I then drag the 32bit batch files into iTunes then click on convert. This way my files are located in an uncluttered location - the newly created iTunes folder (and subfolders). After I'm done, and have dragged my converted files to their ultimate destination, I then get rid of the new iTunes folder and drag the original (main) iTunes folder back into the Music folder. When iTunes is then launched, all of your original Library and Playlists will be there. You can create an Applescript preset to do the folder switching if one wanted to streamline the process.
    Cheers.

  • Convert single column into rows

    hi Gurus,
    I have one table test colums are id and name.
    id number
    name varchar2
    data is like
    id name
    1 xy
    2 xyy
    3 mm
    4 pp
    Now my requirement is to convert single column id into rows
    i,e my output should be of singel rows like :- 1,2,3,4
    How to achive this result .
    I dont have any idea to do this query.
    Please help guys.
    Thanks in advance.
    Vijay

    Well,
    As long as your code doesn't have to run in production, simplest way is:
    WM_CONCAT (but it's not documented)
    or use XMLAGG, it's simpler than a connect by:
    MHO%xe> with t as (
      2  select 1 col, 'xy' str from dual union all
      3  select 2, 'xyy' from dual union all
      4  select 3, 'mm'from dual union all
      5  select 4, 'pp' from dual union all
      6  select 8, 'pp' from dual union all
      7  select 12, 'pp' from dual union all
      8  select 40, 'pp' from dual
      9  )-- actual query, based on id's generated above:
    10  select rtrim(xmlagg(xmlelement(e,col||',')).extract('//text()'),',') col
    11  from   t;
    COL
    1,2,3,4,8,12,40
    1 rij is geselecteerd.

Maybe you are looking for