Clearscan indexable image conversion

Is there a relatively simple way to convert a PDF file saved as searchable image format Clearscan? I know that I can open pages in Photoschop, save them under objectives and then convert them to PDF using ClearScan but I'd like to find a less laborious way.

Barry Cooper

Yes, there is a direct way. You can run OCR on the file with the PDF output Style defined as Clear Scan. Follow the steps below:

1: Open the file in Acrobat.

2: call OCR on the file opened.

3: you will see a dialog box to specify the settings of the OCR.

4: change the settings to specify the output PDF as ClearScan Style.

5: run OCR on the file.

Your file will now be a ClearScan file.

Please note that although you can convert a searchable Image file to ClearScan file directly, but the reverse is not possible. So, if you want to convert file Clear Scan to searchable Image, you will need to go through the steps you mentioned.

Tags: Acrobat

Similar Questions

  • EMF Tiff image conversion does not properly on Windows 7 PC

    I have a c# application that monitors the Clipboard.  When an EMF
    comes, I extract the EMF of the Clipboard data and try to
    Save offshore in a TIFF image. Everything works fine on a windows XP PC. However, when you do the conversion to grayscale, the converted image is not readable (blurry) on Window 7 PC (32-bit / 64-bit).

    I have using the standard GDI + for the conversion needs. What could be changed as the origin of the problem? Any help appreciated.

    Hello
     
    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for Visual c# in the MSDN forums. Please post your question in the Visual c# MSDN forum.
     
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • Polygon color with RGB U64 images / Image conversion of RGB U64 in RGB U32

    Hi guys,.

    I want to use the color polygon feature, but I have an input RGB U64 image. The only supported is image RGB U32 type. Is it possible to convert the image to U64 U32 and use the color polygon feature?  I know I'll lose accuracy, but what for the moment.

    Otherwise, you know the functions of polygon that supports RGB U64 images as input?

    Please let me know.

    Thank you

    ARE

    IMAQ Cast Image VI Converts the current image type for the image type specified by Type of Image.

    How Casting works: The VI shifts the value from the source to the range of 8-bit using the depth of specific bit of the source image. Then the VI defines each color component in the destination value for the corresponding component in the value of the source.

  • IMAQ JPEG image conversion problem string

    Hi, I'm using the format JPEG decode VI to decode an image string I get a camera at Black fins. It works fine when I run VI himself, but when I use it as a subvi the program crashes. Anyone have advice?

    This is a picture of my program

    It's the way the file is returned to the camera

    'I '. «#IMJxs0s1s2s3...» » Enter the JPEG compressed video image

    x = size of the frame in pixels:
    1 = 80 x 64, 3 = 160 x 120, 5 = 320 x 240, 7 = 640 x 480, 9 = 1280 x 1024

    s0s1s2s3 = size of the image in bytes (s0 * 256 ^ 0 + s1 * 256 ^ 1 + s2 * 256 ^ 2 + s3 * 256 ^ 3).
    ... = full frame JPEG

    Note that sometimes the 'I' command returns nothing if the robot camera is busy, then the 'I' command should be called as many times as necessary until a framework is returned

    I changed the format JPEG decode VI by changing the plans of red and blue color. I don't know if this caused the problem though.

    Hello

    This can be useful for you:

    http://forums.NI.com/NI/board/message?board.ID=200&message.ID=21845#M21845

    Andrey.

  • RAW image conversion

    WLPG is not convert nikon raw (nef) images in of wmphoto. Any solution?

    For those who do not know and do not want to look up:

    WLPG is "Windows Live Photo Gallery"
    "NEF" is the Nikon RAW image format.  Nikon has even a codec download for it.
    The wmphotos... * DECODING * 'Windows Media Photos?

    Have you tried the codec?

  • QImage Image conversion

    Hi, I have a QImage I want to use an ImageView. What I did was converted into a bb::ImageData and then create an Image using this ImageData. The code is given below.

    QImage imageQ;
    imageQ.load("app/native/assets/images/bg.png");
    imageData = bb::ImageData::fromPixels(imageQ.bits(), bb::PixelFormat::RGBX, canvasWidth, canvasHeight, imageQ.bytesPerLine());
    
    image = ImageView::create().
    image(Image(imageData));
    

    But the problem is that the image is reversed. The original image and the image converting QImage image run this public DropBox folder.

    https://www.dropbox.com/sh/0c1tlan6a1jh0pv/AACDHIvqWTryXA0JjOo0_P-OA

    Try to make a

        imageQ = imageQ.rgbSwapped();
    

    before the line fromPixels.

  • A texture image conversion complex in a simplified vector graphic

    Hello

    I have a complex of water chart, I'm trying to simplify and vectorize. I manipulated the image in Photoshop to bring out the contrast and tried pathing image then export paths to illustrator, but the size of the file was obviously great same situation bringing the TIFF in Illustrator and use the vectorization. Is there anyway between programs or both, I can simply and smooth the vector illustration to shall declare the size of the file and make it easier to manipulate, size, color, ect. ? I use the image as texture and it doesn't have to be complex, I would just flow and structure lines.

    I've attached a screenshot of the TIFF Photoshop file I created off the coast of the original photo of the water and the vectorized version, that I have done, by using vectorization, in Illustrator. The vectorized version is a bit unstable and complex. I don't know you have a thing or the best way to do it.

    Thank you very much.

    TM

    Screen Shot 2016-05-10 at 5.22.34 PM.pngScreen Shot 2016-05-10 at 5.30.19 PM.png

    Color will be easier to handle after vectorization.

    And if you do not want to lose details will not get fewer anchor points.

  • Unique spot color grayscale image conversion

    Hello.

    I'm trying to convert a grayscale image in a single spot color image. The spot color is PMS425C, color gray, but as I'm only printing 2 colours I need to convert these images in one spot color.

    Can someone please help?

    Thank you

    Have you seen the monotonous separated to CMYK?  If so, you can not make the PDF correctly and the place is being converted. It can still have CMYK channels, but they are empty and will not end plates.  Check your output to PDF settings and check the ink Manager that the tasks are retained.  In addition, there are more than one way to display preview of the output that can be confusing at first.

    You export as PDF X / 1a and if your settings are correct, when you view in output preview (separations) in Acrobat, you should see the spot as a task.

    Try to save your monotonous as .psd too many other formats will support the monotonous.  If you view separations in ID, you will be able to see if your file supported by spot color.

  • Shockwave Flash object in Word2007 only Image conversion to PDF using Acrobat9 Pro

    I put the Shockwave Flash object to integrate: True & video located on-site, then why isn't Acrobat 9 Pro conversion word to PDF video video.

    I tried:
    -using the "Acrobat" section on Ribbon Word to convert
    -Save Word file to Acrobat using command "save under" password
    -using Adobe printer in Word
    -Open the file Word from Acrobat

    Ive reskimmed just the word 'Advanced' and 'save' options & I see no additional checking to do.

    Thanks for doing this,

    SEM.

    Try the demo version of Pro Extended.

  • .PS to GIF conversion - truncates the image

    Hi all

    I have an image file in .ps format. When I try to convert it to GIF or JPEG or PDF, I could see that the image is truncated on the right. But when I change the .ps file to be in landscape mode image conversion is correct.

    But I want the image to be converted to Portrait without truncation of the image mode.

    Can any help me to solve this problem in the .ps file.

    Can do something chnaging the .ps file so that I can get a complete picture

    Seen the content of postsript below:

    --------------------

    % ! PS
    %% Version: 3.15
    %% Presents: (atend)
    %% Pages: (atend)
    %% EndComments
    Ident % ' @(#)lp:filter/postscript/postscript/dpost.ps 1.1 ".
    %
    Prologue to version 3.16% for troff files.
    %

    /#copies store 1
    1 def /aspectRatio
    1 def /formsperpage
    / landscapes false def
    Def lineWidth.3
    1 def /magnification
    /Margin 0 def
    /orientation 0 def
    def /Resolution 720
    /xoffset 0 def
    /YOFFSET 0 def

    /roundpage true def
    /useclippath true def
    /pagebbox [0 0 612 792] def

    /R/Times-Roman def
    /I/Times-Italic def
    Def/Times-Bold/b
    Def/Times-BoldItalic /bi
    Def /Helvetica/h
    /Hi/Helvetica-Oblique def
    Manual/Helvetica-Bold def
    /HX/Helvetica-BoldOblique def
    /Convoyeur def /CW
    / Co /convoyeur def
    In/Courier-Oblique def
    /BG/Courier-Bold def
    /CX/Courier-BoldOblique def
    /PA/Palatino-Roman def
    /ER/Palatino Italic def
    /PB/Palatino Bold def
    /PX/Palatino-BoldItalic def
    Def/Helvetica-Narrow/h
    /Hi /Helvetica - Narrow - Oblique def
    Manual/Helvetica-Narrow-Bold def
    /HX/Helvetica-Narrow-BoldOblique def
    / Bookman-Light def /KR
    /Ki/Bookman-LightItalic def
    / Bookman-half def /Ko
    /KX/Bookman-def DemiItalic
    /AR/AvantGarde-Book def
    /AI/AvantGarde-BookOblique def
    Def/AvantGarde-half/AB
    /AX/AvantGarde-DemiOblique def
    /Nr/NewCenturySchlbk-Roman def
    Which/NewCenturySchlbk-Italic def
    /NB/NewCenturySchlbk-Bold def
    /NX/NewCenturySchlbk-BoldItalic def
    Def/ZapfDingbats/ZD
    Def/ZapfChancery-MediumItalic/Zi
    /VR Varitimes #Roman def
    / VI Varitimes #Italic def
    /VB /Varitimes def #Bold
    /VX Varitimes #BoldItalic def
    Def/s/s
    / Def /S1 S1
    Def/Symbol/gr

    /inch {72 mul} bind def
    / min {copy 2 gt {exch} if pop} bind def

    / Setup {}
    counttomark 2 idiv {def} repeat pop

    landscape {/ orientation orientation 90 add def} if
    / 72 resolution div def scaling
    LineWidth setlinewidth
    1 setlinecap

    pagedimensions
    definition of Massilia overview
    Rotate orientation neg
    definition of width 2 neg 2 div height div
    definition of x_offset inches decalage_y
    2 div DUP. neg. margin definition
    scale of magnification dup aspectratio mul
    scale scale scale

    / Symbol/s Sdefs FC
    / CF S1defs S1 times-Roman
    0 0 moveto
    } def

    {/pagedimensions}
    useclippath /gotpagebbox userdict doesn't know not and {}
    /pagebbox [pathbbox newpath clippath] def
    roundpage currentdict known /roundpagebbox and {roundpagebbox} if
    } If
    pagebbox pop aload
    4. 1 roll 4 1 roll 4 exch copy
    landscape {4 2 roll} if
    void /width exch def
    void /height exch def
    Add 2 div /xcenter exch def
    Add 2 div /ycenter exch def
    UserDict real /gotpagebbox put
    } def

    {/PageSetup}
    / page exch def
    currentdict /pagedict known currentdict known page and {}
    Page load pagedict exch get cvx exec
    } If
    } def

    [/decodingdefs
    {repeat it counttomark idiv 2 {y moveto show}}
    {repeat it neg/y exch def counttomark 2 idiv {y moveto show}}
    {repeat it neg moveto {index 2 sub stringwidth pop exch 0 32 4 div - 1 roll widthshow}}
    {repeat it neg moveto {void 0.0 spacewidth 32 4 - 1 roll widthshow}}
    {repeat it counttomark idiv 2 {y moveto show}}
    {setfunnytext neg}
    ] def

    /setdecoding {/ t decodingdefs 3-1 roll get bind def} bind def

    bind/w def {neg moveto show}
    /m {neg dup/y exch def moveto} bind def
    / fact {/ lastpage where {pop lastpage} if} def

    /f {}
    DUP / make exch findfont exch def
    DUP /ptsize exch def scaling of div dup/Size exch scalefont setfont def
    width of stripe ptsize mul scaling 10 setlinewidth div mul
    /spacewidth () stringwidth pop def
    } bind def

    {/changefont}
    /FontHeight exch def
    /fontslant exch def
    [CurrentFont
    1 0
    FontHeight ptsize div fontslant sin fontslant cos div mul
    FontHeight ptsize div
    0 0
    ] makefont setfont
    } bind def

    /SF {f} bind def

    {/ cf}
    DUP length 2 idiv
    /Entries exch def
    /chtab exch def
    /NewFont exch def

    findfont length 1 Add dict dup
    /newdict exch def
    ForAll {1 index /FID {newdict 3 1 roll could not} {pop pop} ifelse}

    newdict entries /Metrics dict set
    newdict /Metrics get
    Start
    chtab pop aload
    1 entries 1 {pop def}
    newdict pop definefont NewFont
    end
    } bind def

    %
    % Some tables used to adjust the points of reference and widths in some of the characters
    % of the printer resident fonts. Try changing if the square roots are too high
    % the lines describing the /radical and /radicalex,
    %
    % /radical [0-75 550 0]
    % /radicalex [-50-75 500 0]
    %

    / [Sdefs
    /bracketlefttp [220 500]
    /bracketleftbt [220 500]
    /bracketrighttp [-70 380]
    /bracketrightbt [-70 380]
    /braceleftbt [220 490]
    /bracketrightex [220-125 500 0]
    / radical [0 0 550 0]
    Newsprint %------(br is too low to compensate for
    statusdict /product get {eq (NeWS server)
    /radicalex [-50 100 500 0]
    /parenleftex [-20 100 0 0]

    } {
    /radicalex [0-50 500 0]
    /parenleftex [-20-170 0 0]
    } ifelse
    / integral [100-50 500 0]
    /Infinity [-10 75 730 0]
    ] def

    / [S1defs
    / underline [0 0 80 500]
    /endash [7 90 650 0]
    ] def
    %% EndProlog
    %% BeginSetup
    brand
    %% FormsPerPage: 2
    /formsperpage 2 def
    Setup
    2 setdecoding
    % EndSetup
    %% Page: 1 of 1
    Save
    brand
    1 pagesetup
    14 I have f
    (Sp) 1220 882 w
    11 S f
    (-) 1378 924 w
    14 I have f
    (A) 1439 882 w
    14 S f
    (\354)1547 799 w)
    (\356)1547 939 w)
    14 I have f
    W (UtranCell) 1616 882
    14 S f
    (\374)2208 799 w)
    (\376)2208 939 w)
    (=) 2277 882 w
    14 R f
    (100) 882 2354 w
    14 S f
    (\351)2587 799 w)
    (\353)2587 939 w)
    14 R f
    (%) 2657 882 w
    14 S f
    (\371)2796 799 w)
    (\373)2796 939 w)
    (\264)2849 882 w)
    14 I have f
    w 1387 1467 (pmTotNoRrcConnectReqCs)
    14 S f
    (\354)2967 1384 w)
    (\356)2967 1524 w)
    14 I have f
    W 3036 1467 (UtranCell)
    14 S f
    (\374)3628 1384 w)
    (\376)3628 1524 w)
    14 I have f
    w (pmTotNoRrcConnectReqCsSucc) 1255 1146
    14 S f
    (\354)3099 1063 w)
    (\356)3099 1203 w)
    14 I have f
    W (UtranCell) 3168 1146
    14 S f
    (\374)3760 1063 w)
    (\376)3760 1203 w)
    14 f S1
    t 1 2616 1 1234 1257 (_ _)
    14 S f
    (\264)3864 1299 w)
    14 I have f
    w 1255 2052 (pmNoNormalNasSignReleaseCs)
    14 S f
    (w \354)3094 1969
    (\356)3094 2109 w)
    14 I have f
    W 3163 2052 (UtranCell)
    14 S f
    (w \374)3755 1969
    (\376)3755 2109 w)
    (+) 3824 2052 w
    14 I have f
    w 3901 2052 (pmNoSystemNasSignReleaseCs)
    14 S f
    (w \354)5700 1969
    (\356)5700 2109 w)
    14 I have f
    W 5769 2052 (UtranCell)
    14 S f
    (w \374)6361 1969
    (\376)6361 2109 w)
    14 I have f
    w (pmNoNormalNasSignReleaseCs) 2558 1731
    14 S f
    (\354)4397 1648 w)
    (\356)4397 1788 w)
    14 I have f
    W (UtranCell) 4466 1731
    14 S f
    (\374)5058 1648 w)
    (\376)5058 1788 w)
    14 f S1
    (_ __________________________________________________________________________)1 5217 1 1234 1842 t
    14 S f
    (\264)6465 1884 w)
    14 I have f
    w (pmNoRabEstablishAttemptSpeech) 1255 2637
    14 S f
    (2554 \354)3191 w)
    (2694 \356)3191 w)
    14 I have f
    W (UtranCell) 3260 2637
    14 S f
    (2554 \374)3852 w)
    (2694 \376)3852 w)
    14 I have f
    w (pmNoRabEstablishSuccessSpeech) 1255 2316
    14 S f
    (\354)3192 2233 w)
    (\356)3192 2373 w)
    14 I have f
    W (UtranCell) 3261 2316
    14 S f
    (\374)3853 2233 w)
    (\376)3853 2373 w)
    14 f S1
    t 1 2709 1 1234 2427 (_ _)
    cleartomark
    showPage
    restoration
    %% EndPage: 1 1
    %% Trailer
    fact
    % Present: Times-italic Times-Roman symbol
    %% Pages: 1

    --------------------------

    Thanks in advance.

    Kind regards

    Jawahar

    Your file PS does not contain the parameters of size or page orientation, so the PostScript interpreter you use

    simply defines the configured default page size.

    As the file defines something as a page covering (the name pagebbox is used), take the fiven values it

    to build a State of page size. For example insert

    < agesize="" [792="" 612]="">> setpagedevice

    right after the comment lines (lines starting with two percent signs). Forcing your PS interpreter

    (condition he speaks at least the language level 2, that I take in silence) to make the formula for a

    Letter size page orientation is landscape.

    If you really want a portrait orientyation, you need to swap two numbers in the

    Statement above and enter the code to scale down the formula.

    Helge

  • Image indexable vs searchable Image (exact) - quality of the OCR

    I work in the legal field and have always used the "Searchable Image (exact)" parameter when you run internal OCR on the document productions.  I am currently using Acrobat X when I do my own OCR.

    I have a seller who says they use Acrobat 9 "Searchable Image" for all productions of their document.  They say even if the actual image of the document is altered, they get better quality OCR results than they do with 'Searchable Image (exact).'  They say that the document is corrected that text can be read by the OCR engine.

    My problem is that a lot of documents is changed.  Architectural drawings in particular are dramatically tilting to the right, the edge of the drawing is being cut entirely from the document and dotted lines are added to the image itself - apparently where used to be at the edge of the page.  This is unacceptable.  They say that the entire drawing being reversed so that the first lines of the text on the drawing's horizontal.  So if there is a small piece of text that is tilted, the entire drawing is inclined to adapt to this one piece of text.

    Is it true that OCR is much better using "Searchable Image" vs "indexable Image (exact)"?  I need to select a configuration option for all the docs, and I am inclined not not change our documents in any way at the expense of the OCR.

    They also say that they have docs of OCRing evil I can't OCR without problem using Acrobat 8 and Acrobat X.  Does this make any sense?  I went directly from 8 x, so I'm not familiar with Acrobat 9.

    Once the OCR files use "Searchable Image" and SAVED, you need to go back and
    find copies of the original files pre - OCR and reOCR them by using "indexable Image (exact)"?

    If having this "faithful" to the original document is an indispensable attribute then, Yes, get you the pre - OCR had PDFs and run through the searchable Image (exact).

    Regardless of the version of Acrobat (4.x, 5.x, 6.x, 7.x, 8.x, 9.x, X or XI), the essential characteristic of the searchable Image (exact) has not changed.
    In other words, the image does not suffer the "tweaking" provided by indexable Image.

    Therefore, the PDFs by searchable Image (exact) of which version of Acrobat will be acceptable.

    What happens if you treat a PDF file containing a scanned image of text content through the searchable Image (exact)?
    The PDF wins a second 'hidden layer' of the production of the OCR. (I have it done - inquiring minds want to know, huh?) )
    Of course, using Acrobat Pro, we could eliminate an existing one 'hidden layer' OCR output.

    [addendum: this deletion is of * all * this - if a show it has disappeared, if more than one, then all go]

    The path "click on" ways to resolve this problem varies depending on the version of Acrobat.

    Because you work with PDF files have been the exact presentation of the original document is import, you can set up Acrobat that you have certain obstacles to an "oops".

    An example:

    In the Acrobat preferences, select the "Convert to PDF" category, and then select TIFF.
    Change the settings.
    Monochrome compression - CCIT G4
    Grayscale Compression - ZIP
    Colours - ZIP compression
    RGB policy: Preserve embedded profiles
    Political CMYK: Off
    Political gray: Off
    Other policies: preserve embedded profiles

    An example:

    Configure Acrobat Optimization Options
    --| via Acrobat optimize scanned PDF document
    --| through the Optimization Options dialog box presented after clicking the ' Options' button in the pane of optimization in the configuration dialog box to create a PDF from a Scanner.

    Uncheck the "Automatic" (you don't want "Aggressive" or "Adaptive")
    Select "Custom".

    For Compression
    --| Color/Grayscale--> ' select "Lossless."
    --| Monochrome--> select "CCIT Group 4.

    For filtering
    --| review the help of Acrobat to read the discussion on the choices that are available.
    (Deskew |) Background removal | Edge shadow removal | Clean | Descreening | Removal of Halo | Sharpening text)

    Open the help of Acrobat and go to "analyze a paper as a PDF document.
    A close reading of the information will be informative and useful.

    You want to avoid dealing with any image of the record of lossy compression (which compresses by destructive removal of pixels - so "corrupt" that "faithful").

    You want to avoid filtering which alters the image.

    Be well...

    Post edited by: CtDave

  • Performance when indexing table 1 d of table 2D

    In the attached extract, I'm trying to store images from a camera in a pre-initialise table. The GetImages16 function is a wrapper of commercial for a DLL that takes a pointer to a 1 d array and writes the image of the camera. My Images in table must store 1500 ~ frames of images of 128 x 128 pixels, so I assigned a 2D of 16384 x 1500 table.

    The problem I have is that table indexing Images significantly slows down that I increase the number of images, and I can't keep up with my camera. Three things correct this code:

    1. reduction of the size of the Images of 1500 images to<400 frames="" or="">

    2 image making a 1 d array and passing it directly.

    3. moving code from indexing outside of the loop.

    So, even if the location of the first image of Images should not change, it seems to take significantly longer (~ 5 ms) to perform indexing of Images when the pre-initialise table becomes large (> 400 frames). This suggests that I couldn't be very good memory management, but I'm a noice from LabVIEW relative in this area. I tried indexing column instead of line and get the same performance.

    Suggestions?

    Maybe I simply don't see, or maybe that is not visible in this picture, but I don't see anywhere that write you to the local variable of the "Perle of Images", so I don't see how it's helping you. Again, it would be useful to see the subVIs. Can you post a ZIP file containing all your screws, instead of just images?

    To share a great picture between the loops, the best option is an action VI engine that stores the chart in an uninitialized shift register. At a minimum, it must have actions to initialize the table records an image in the table and retrieve an image. There also other treatment options, so you can operate directly on the data in the table.

  • Problem making a 1-bit image

    I'm trying to make a 1-bit image and I tried several ways to do but got nowhere with it. I hope someone will see the mistakes I make and show me how to solve this problem, I joined the program I was working, the image I used is also attached it may be I don't know.

    Hey alang.

    by converting into PNG I don't mean not simply to rename the file...

    Your BMP is a 24-bit image, so you should check the output 24-bit image conversion routine. Then you simply check a single color component (as it is a grayscale image) for your level of comparison:

  • incompatible image type

    I get an incompatible image with installation 2 ringtone type, learn 2 and 2 ringtone model Match. I understand that this error is thrown when the model of image bit depth and indexable image is different, but in my case, everyone is a 16-bit image.

    Any suggestions? An image of my installation is attached. You can see from sensors that everyone is a 16-bit image.

    Candice, get it please help installation ringtone 2 functions, learn ringtone 2, and 2 Pattern Match are compatible with the 16-bit type. I geuss, they only for 8-bit (but not sure - I have no vision now to check)

    Andrey.

  • How to convert the Bitmap Image in BlackBerry

    Hello

    In my application, I get the picture from the server. Now, I want to convert this Bitmap Image to display on the screen. For this I use below codes. But it doesn't give me the same image does not mean with the clarity and the exact size. He's smaller than the picture.

    I used the codes below:

    private Bitmap getBitmapFromImg(Image img) {
            Bitmap bmp = null;
            try {
                Logger.out(TAG, "It is inside the the image conversion        " +img);
                Image image = Image.createImage(img);
                byte[] data = BMPGenerator.encodeBMP(image);
                Logger.out(TAG, "It is inside the the image conversion---333333333"+data);
                bmp = Bitmap.createBitmapFromBytes(data, 0, data.length, 1);
                } catch (Exception e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            return bmp;
            // TODO Auto-generated method stub
        }
    

    Here is the BMPGenerator class:

    public final class BMPGenerator {
    
            /**
             * @param image
             * @return
             * @throws IOException
             * @see {@link #encodeBMP(int[], int, int)}
             */
            public static byte[] encodeBMP(Image image) throws IOException {
                    int width = image.getWidth();
                    int height = image.getHeight();
                    int[] rgb = new int[height * width];
                    image.getRGB(rgb, 0, width, 0, 0, width, height);
                    return encodeBMP(rgb, width, height);
            }
    
            /**
             * A self-contained BMP generator, which takes a byte array (without any unusual
             * offsets) extracted from an {@link Image}. The target platform is J2ME. You may
             * wish to use the convenience method {@link #encodeBMP(Image)} instead of this.
             * 

    * A BMP file consists of 4 parts:- *

      *
    • header
    • *
    • information header
    • *
    • optional palette
    • *
    • image data
    • *
    * At this time only 24 bit uncompressed BMPs with Windows V3 headers can be created. * Future releases may become much more space-efficient, but will most likely be * ditched in favour of a PNG generator. * * @param rgb * @param width * @param height * @return * @throws IOException * @see http://en.wikipedia.org/wiki/Windows_bitmap */ public static byte[] encodeBMP(int[] rgb, int width, int height) throws IOException { int pad = (4 - (width % 4)) % 4; // the size of the BMP file in bytes int size = 14 + 40 + height * (pad + width * 3); ByteArrayOutputStream bytes = new ByteArrayOutputStream(size); DataOutputStream stream = new DataOutputStream(bytes); // HEADER // the magic number used to identify the BMP file: 0x42 0x4D stream.writeByte(0x42); stream.writeByte(0x4D); stream.writeInt(swapEndian(size)); // reserved stream.writeInt(0); // the offset, i.e. starting address of the bitmap data stream.writeInt(swapEndian(14 + 40)); // INFORMATION HEADER (Windows V3 header) // the size of this header (40 bytes) stream.writeInt(swapEndian(40)); // the bitmap width in pixels (signed integer). stream.writeInt(swapEndian(width)); // the bitmap height in pixels (signed integer). stream.writeInt(swapEndian(height)); // the number of colour planes being used. Must be set to 1. stream.writeShort(swapEndian((short) 1)); // the number of bits per pixel, which is the colour depth of the image. stream.writeShort(swapEndian((short) 24)); // the compression method being used. stream.writeInt(0); // image size. The size of the raw bitmap data. 0 is valid for uncompressed. stream.writeInt(0); // the horizontal resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the vertical resolution of the image. (pixel per meter, signed integer) stream.writeInt(0); // the number of colours in the colour palette, or 0 to default to 2n. stream.writeInt(0); // the number of important colours used, or 0 when every colour is important; // generally ignored. stream.writeInt(0); // PALETTE // none for 24 bit depth // IMAGE DATA // starting in the bottom left, working right and then up // a series of 3 bytes per pixel in the order B G R. for (int j = height - 1; j >= 0; j--) { for (int i = 0; i < width; i++) { int val = rgb[i + width * j]; stream.writeByte(val & 0x000000FF); stream.writeByte((val >>> 8) & 0x000000FF); stream.writeByte((val >>> 16) & 0x000000FF); } // number of bytes in each row must be padded to multiple of 4 for (int i = 0; i < pad; i++) { stream.writeByte(0); } } byte[] out = bytes.toByteArray(); bytes.close(); // quick consistency check if (out.length != size) throw new RuntimeException("bad math"); return out; } /** * Swap the Endian-ness of a 32 bit integer. * * @param value * @return */ private static int swapEndian(int value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; int b3 = (value >> 16) & 0xff; int b4 = (value >> 24) & 0xff; return b1 << 24 | b2 << 16 | b3 << 8 | b4 << 0; } /** * Swap the Endian-ness of a 16 bit integer. * * @param value * @return */ private static short swapEndian(short value) { int b1 = value & 0xff; int b2 = (value >> 8) & 0xff; return (short) (b1 << 8 | b2 << 0); }

    Where an error in my code? Is there another way to do the same thing?

    Why you want to use a bmp image?
    You can just use png, jpg or whatever of the original image is.
    If there is a situation where you need the bitmap image call http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/EncodedImage.html#getBi...

Maybe you are looking for

  • Cannot add my Google account in iOS

    I want to synchronize my Google calendars with iCal on my iPhone.  When I add my Google account in settings-> Mail/Contacts/calendar, I click on 'Google', enter my Google account email and password then and for a split second the screen to select wha

  • Satellite M70 - LCD display is completely dead

    Hello I have SatelLite pro M70 PSM76E and I it has following problemWhen I try to turn on, LCD is completely dead. I have connected the CRT and it seems to start ok but when it goes to windows it freezes and restarts after a few seconds.I think this

  • Tecra M5: cursor twitching while typing

    After you download the mouse driver for my Im of Tecra M5 always issues in the Microsoft office document mode. Everytime I open a new document (or old) and write a paragraph, the mouse and the cursor jumps to halfway paragraph has just written and go

  • system error c000021a fatal

    I get this error code tracking 0xc0000006, 0x75eb4f51, 0x0069e15c.  I have a computer dell laptop that won't let me do anything.  I hit the F8 key while turning on the computer and he won't start in safe mode or anything.

  • 802. 1 x with assignment of VLANs

    Hello I'm trying to Setup 802. 1 x with assignment of VLANS. I have been successfully obtained the authentication works, but assigning VLAN is not applied. I tried this on a CE500, and WS2950-12 once encountering the same problem. If I "debug dot1x a