Help regarding converting images into blocks of 8X8

Hi,
Please could anyone help me with the source code for converting an image(of any type) into blocks of size 8X8.
I need these blocks as an input for DCT conversion for Watermarking the image
Thanks in advance

Hello
You can migrate a SAPscript form into a Smart Form and convert a SAPscript style into a Smart Style.
When converting a SAPscript style into a Smart Style, the system converts all paragraph and character formats with all their properties and attributes without any changes. Thus you can use the converted Smart Style without making any adaptations.
When migrating a SAPscript form into a Smart Form, the system executes the following steps:
It copies the language attributes and the output options.
It migrates the layout information including pages, windows, and their attributes and positions on the page.
It copies the texts in the form.
It displays the fields (SAPscript notation: program symbols) in the texts.
It converts the SAPscript commands (such as NEW-PAGE or IFu2026ENDIF) to comment lines and displays them in the texts.
After the migration, you have a template that you can enhance and modify according to your needs. Adapt the form logic by specifying the commands which the system converted to comment lines.
Refer to URL for more details - http://help.sap.com/saphelp_nw04/helpdata/en/9d/9599386185c064e10000009b38f8cf/content.htm
Regards.

Similar Messages

  • Convert Image into matrix

    I need to know how to convert a black and white image into a matrix form.
    I have loaded a file using BuffredImage class.
    But dont know how to get the matrix form..
    Somebody help me out with the code please.........

    Have you looked at the BufferedImage API? If not, you may find some methods there that can help.

  • I need help dividing an image into two equal parts in Adobe Illustrator CC--ASAP!!!

    I need help dividing a single, already created image into 2 equal parts...Am getting nowhere so far

    Hi Willi, thanks so much for responding! Below is the image I need to divide in half. The left half where it says "Click here for the definition" links to a landing page where people can read the definition of the Hebrew Word. The right half links to an audio recording of the Hebrew word being spoken aloud. I am trying to figure out how to use the scissors or knife tool in Adobe Illustrator and am having no luck. Plus I believe there's a way to include URLs on each separated part, but I can't get past figuring out how to cut it. My background is not graphic design

  • How can i convert image into pdf  file

    Hi Friends,
    I want to convert image file(i.e. jpeg,bmp,gif) into pdf file using java apis OR is there any tool which can convert it & which we can integrate into our java application
    Thanks in adva.

    Is there any solution to this case.....?

  • Converting image into byte array

    Hi all,
    How to convert an integer array image into byte array ?
    here i have a image like this :
    private static int pixelArray[] = {
    0xff000000, 0xff000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000,
    0xff000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000
    From this one i create image like this one :
    Image image = Image.createRGBImage(pixelArray, width, height, true);
    Now i want to convert that pixelArray into byte array ? how to do this
    additionally i want to send this byte array to servlet .
    thanks in advance.

    Hi,
    If you want to convert your int array to a byte array you should
    split each integer into 4 bytes to avoid losing information. You can
    rebuild your integer array later if you need to. I think this code
    will work (i havent tested it):
    byte[] pixel= new byte[pixelArray.length<< 2];
    for (int i= pixelArray.length- 1; i>= 0; i--) {
      int aux= i<< 2;  // i* 4 = i<< 2
      pixel[aux]=    (byte) (pixelArray>> 32);
    pixel[aux+ 1]= (byte) (pixelArray[i]>>> 16);
    pixel[aux+ 2]= (byte) (pixelArray[i]>>> 8);
    pixel[aux+ 3]= (byte) pixelArray[i];
    Greets.

  • Need help regarding converting text to Lines and Arcs.

    In my program i have text.Lets say the text is JAVA.
    Now i need to group that text(JAVA) in the form of line and arcs.
    Its like organizing lines and arcs and make it looks like a text(JAVA).
    Can we have such a possibilities to do that?
    Please help regarding this!!
    Thanks in Advance.
    Boopathy.

    Have a look at TextLayout class (http://java.sun.com/javase/6/docs/api/java/awt/font/TextLayout.html)
    Graphics2D g = ...;
    Point2D loc = ...;
    Font font = Font.getFont("Helvetica-bold-italic");
    FontRenderContext frc = g.getFontRenderContext();
    TextLayout layout = new TextLayout("This is a string", font, frc);
    Shape shape = layout.getOutline(null);
    Edited by: AlexeyUshakov on Sep 29, 2008 8:46 AM

  • Help? Unidentified Image Resource Block IDs

    I wrote some code to parse a .psd file written by CS2. The file I'm looking at has some Image Resource Block IDs that I cannot find docs for. Can anyone anyone point me to the right docs so that I can
    The unknown ids are:
    0x42d 1069 (block is 6 bytes long)
    0x430 1072 (block is 4 bytes long)
    0xFA0 4000 (block is 268 bytes long)
    0xFA1 4001 (block is 28 bytes long)
    Dave H

    It doesn't look inside IRBs, but you might find my
    PSD parser useful as reference. It extracts all raster data.

  • Convert image into TIFF 4

    I have a requirement to convert images from TIFF 6 to TIFF 4. I have been able to convert to TIFF without compression. However, to reduce the file sizes I need to implement compression_group4. Although it is listed as being supported . . . it does not appear to be.
    Any ideas?

    (1) Are you using compression? I can create TIFFs but not compress them using .COMPRESSION_GROUP4
    (2) When I try and use JAI's ImageCodec (specifically TIFFEncodeParam) and specify COMPRESSION_GROUP4 I get a run-time error: "java.lang.Error: Unsupported compression scheme specified."
    (3) This error seems to be generated by the line .setCompression, as I have been able to generate the error without specifying an image. (ie: it's not related to this image not being supported)
    (A) Here is the code I'm using:
    OutputStream os = new FileOutputStream(destinationFile); //where destinationFile is a File object representing the saved file
    TIFFEncodeParam param = new TIFFEncodeParam();
    param.setCompression(TIFFEncodeParam.COMPRESSION_GROUP4);
    ImageEncoder enc = ImageCodec.createImageEncoder("TIFF", os, param);
    enc.encode(src); //where src is a RenderedImage Object
    os.close();
    any ideas?
    Thanks in advance!

  • Help with converting image to B&W apart from a single area/item??

    Hello
    I am new to Adobe and have downloaded the trial version of Master Collection. No idea what it's all about but have a month to work it out!!
    What I would like to know how to do (hopefully I can explain it!) is to convert a picture to black and white apart from a single object i.e. a wedding photo of a couple in black and white but his flower on the lapel is in it's original colour.
    Can this be done in any of the Master Collection programs and if so, can anyone explain in laymans terms how I do it please and if I first need to make sure my picture has been taken correctly i.e. if it needs to be in raw format?
    Thank you in advance to anyone who can help me and who has the patience to explain it to me very basically!!

    Photoshop: View> Actual Pixels
    use Lasso Tool (press L key) to draw a selection around part you want to maintain color
    Select> Modify> Feather (1 pixel)
    then Command+J (Mac), or Layer> New> Layer via Copy
    (this copies your selection to a new layer)
    in Layers Pallet, select your original Layer
    then Command+J (Mac), or Layer> New> Layer via Copy
    to make a backup copy of your original layer
    now your copy layer should be highlighted in Layers Pallet
    Image> Adjustments> Black & White (should Desaturate the Layer and leave your colored selection on top)....
    The Layers and History look like this:
    Of course there are many ways to do this...google for tutorials...you may want to post in the Photoshop forum since this is not a colormanagement issue...

  • Needed help regarding converting  string to java.sql.Date format

    I have a a function which returns a calendar object. The date must be inserted to Oracle DB using java.sql.Date format.
    So i have converted the Calendar object to java.sql.Date format using the following code
    java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());But while getting inserted into the DB it was in mm/dd/yyyy format whereas i wanted dd/mm/yyyy format
    Can any body please help out how to store the date in dd/mm/yyyy format ?

    Can u please explain this a bit
    This is my code
    public int addBook(List<Book> BookList) throws SQLException, ParseException{
              System.out.println("Hi there");
              Book book = new Book();
              BookDB bookDb = new BookDB();
              //listLength =      BookList.length;
              String bookId = null;
                   try{
                        DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                        con  = DriverManager.getConnection("jdbc:oracle:thin:@10.123.79.195:1521:findb01","e115314", "e115314");
                        addBook = con.prepareStatement("insert into ABC_Book values(?,?,?,?,?,?,?)");
                        Iterator<Book> iterator = BookList.iterator();
                        while(iterator.hasNext()){
                             book = (Book)iterator.next();
                             System.out.println(book.getBookId());
                             addBook.setString(1,book.getBookId());
                             addBook.setString(2,book.getTitle());
                             addBook.setString(3,book.getAuthor());
                             addBook.setString(4,book.getPublisher());
                             System.out.println(book.getPublicationDate());
                             System.out.println("Before Date");
                             System.out.println("book.getPublicationDate().getTime()"+book.getPublicationDate().getTime());
                             java.sql.Date publicationDate = new java.sql.Date(book.getPublicationDate().getTime().getTime());
                             SimpleDateFormat formatter = new SimpleDateFormat("dd/mm/yyyy");
                             dateString = formatter.format(publicationDate);
                             System.out.println("Today is"+dateString);
                             java.sql.Date date = (java.sql.Date)formatter.parse(dateString);
                             System.out.println("date"+date);
                             //java.sql.Date publicationDate = (Date)book.getPublicationDate().getTime();
                             //System.out.println("Value of date is"+publicationDate);
                             System.out.println("After Date");
                             addBook.setDate(5,publicationDate);
                             addBook.setString(6,book.getCountry());
                             addBook.setString(7,book.getLanguage());
                             rs = addBook.executeQuery();
                             //con.commit();
                             rowCount = rowCount + rs.getRow();
                        return rowCount;
                   catch(SQLException se){
                        se.printStackTrace();
                   finally{
                        con.close();
                        System.out.println("After adding ");
              return 0;
         }

  • Help: import iphoto images into FCE

    Hi, Jake here. Hope you're all doing well....
    I just bumped up from iMovie 06 to FCE. Loving it so far, but still overwhlemed by the learning curve.
    Today's big question is how to best import a series of photos from iPhoto into FCE. I will be mixing photos & videos for most of my projects. I have tried these two things so far:
    1) Dragged & dropped from iphoto directly onto the FCE timeline. Image looks very blurry.
    2) Exported at max JPEG quality from iphoto to a location on my hard drive. Then imported file into FCE, then placed on timeline. It's every bit as blurry.
    Both images have a green line above them, indicating a preview render?? I don't get it, but I just know photos weren't blurry in the store when the Mac guys showed this to me a couple weeks ago.
    So what is the easiest way to do this? I want to import photos quickly & easily, then add effects & movement, but I can't believe that Apple has made it so cumbersome. I imagine I am missing something here. Please advise.
    Thanks!
    Jake

    I think Jake did everything correctly but is expecting too much from a DV format.
    I repeated the same with a 2304 × 1736 (4 megapixel) image and I got the same:
    - dragging a Photo JPEG image (square pixels) to a DV (PAL or NTSC) sequence requires rendering: I get the same green render bar on top
    - in addition the resolution loss from 2304 × 1736 to 720x480 (or 720x576) makes the image blurry
    If you compare the iPhoto image and the imported image in the viewer (not in the timeline) you see basically the same quality; but the same image already converted into the timeline is blurry.
    I'm afraid Jake has to live with this or move to HD. In any case iMovie could do no better than FCE.
    My suggestion in any case is always to check the final quality of the movie, during editing, on an interlaced monitor (TV) connected through firewire and a D/A converter (e.g. camcorder): mostly for still images.
    Piero

  • HELP! Converting MPEG4 into Mov, AVI, WMV

    I made a small clip on iMovie. I need to upload to a website for my band. I clicked on Share then export movie to my desktop. The website clearly says..."For video, we accept the following formats: WMV, MOV, AVI, MPG, MP4, FLV"
    Also, "SPECIAL NOTE ABOUT VIDEO:
    GigMasters will automatically convert all WMV, MOV, AVI, MPG, and MP4 files to FLV. The conversion process will change the size of your video to 320 x 240 if it's not that size already. Also, the "audio sampling rate" of the video must be 11025 hz, 22050 hz, or 44,100 hz. Otherwise the audio may be garbled on playback."
    Everytime I try to upload it tells me, "We do not accept the format of the file you selected. Please make sure your file format matches one of those listed above."
    Somebody please help. Thank you.

    If using 4:3, which would be better given the AR of the movie required by your website, using the export to movie and then choosing the mobile size should be just fine. However your website may not like the .m4v extension added to the movie, in which case simply open the movie in Quicktime and select save as from the file menu, the resulting video will now be in a .mov container which you can then try uploading to your website.

  • PLEASE HELP!  Converting numbers into real words

    I am faced with a problem. I need to create a prorgram that will convert a number ex. 156 into the word "one hundred fiftysix" This program will need to handle numbers up to 999 999 999.
    If someone has a program similar to this or is willing to assist a newbie programmer, your assistance would be appreciated.
    Also source code is preffered, prefferbly with c as the console.
    Thanks again

    Here is my most up to date code
    I also forwarded you a copy of my code
    import hsa.Console;
    public class ConvertingWordsToNumbers
    private static int convertingFromOneToNineteen (String numberString)
    String oneToNineteenInWords [] = {"", "one ", "two ", "three ", "four ", "five ", "six ", "seven ",
    "eight ", "nine ", "ten ", "eleven ", "twelve ", "thirteen ", "fourteen ", "fifteen ",
    "sixteen ", "seventeen ", "eighteen ", "nineteen "};
    int oneToNineteenInNumbers [] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19};
    int total = 0;
    //Checking for each word and adding it to each total
    for (int pos = 1 ; pos <= oneToNineteenInWords.length ; pos++)
    if (numberString.indexOf (oneToNineteenInWords [pos]) >= 0)
    total += oneToNineteenInNumbers [pos];
    numberString = numberString.substring ((numberString.indexOf (oneToNineteenInWords [pos])));
    return total;
    return total;
    private static int convertingFromTwentyToNinety (String numberString)
    String twentyToNinetyInWords [] = {"", "", "twenty", "thirty", "fourty", "fifty", "sixty", "seventy",
    "eighty", "ninety"};
    int twentyToNinetyInNumbers [] = {0, 0, 20, 30, 40, 50, 60, 70, 80, 90};
    int total = 0;
    //Checking for each word and adding it to each total
    for (int pos = 1 ; pos <= twentyToNinetyInWords.length ; pos++)
    if (numberString.indexOf (twentyToNinetyInWords [pos]) >= 0)
    total += twentyToNinetyInNumbers [pos];
    numberString = numberString.substring ((numberString.indexOf (twentyToNinetyInWords [pos])));
    return total;
    return total;
    public static void main (String [] args)
    Console c = new Console ("ConvertingWordsToNumbers");
    //Variable Declaration
    String numberString, millions, thousands;
    String keyWords [] = {"million", "thousand"};
    //User Input
    c.println ("Please enter the number (in words) that you wish to convert: ");
    numberString = c.readLine ();
    numberString = numberString.toLowerCase ();
    //Sectioning the millions and thousands
    if (numberString.indexOf (keyWords [0]) > 0)
    millions = numberString.substring (0, (numberString.indexOf (keyWords [0])));
    c.println (millions);
    c.println (convertingFromOneToNineteen (millions) + convertingFromTwentyToNinety (millions));
    if (numberString.lastIndexOf (keyWords [1]) > 0)
    thousands = numberString.substring ((numberString.indexOf (keyWords [0]) + 8),
    (numberString.indexOf (keyWords [1])));
    c.println (thousands);
    c.println (convertingFromOneToNineteen (thousands) + convertingFromTwentyToNinety (thousands));
    else if (numberString.lastIndexOf (keyWords [1]) > 0)
    thousands = numberString.substring (0, (numberString.indexOf (keyWords [1])));
    } // main method
    } // ConvertingWordsToNumbers class
    thanks again

  • Plz help me convert this into a table format

    Hi,
    private String makeInfo(Vector p_dataV)
    String info = "";
    if (p_dataV.size() > 0)
    info += "<font size=1>";
    for (int i=0; i<p_dataV.size(); i=i+2)
    info += p_dataV.elementAt(i) + ": <b>" + p_dataV.elementAt(i+1) + "</b><br>";
    info += "</font><br>";
    return info;
    I want values of p_dataV.elementAt(i) in one row &
    values of p_dataV.elementAt(i+1) underneath the first row
    Plz help ......
    Regards,
    Vishal

    Come on dude, its pretty simple.
    The following should work.
    I've used Collection Interface rather than Vector (makes it more generic)
    also used an iterator rather than a for loop.
    And used a StringBuffer for building the data in the loop, rather than a String (more efficient). In Java1.5 you should probably use an enhanced for loop, and a StringBuilder.
    I was also careful about the fact of bad data in the list. It won't break if you don't provide an odd number of elements.
    private String makeInfo(Collection p_dataV)
    String info = "";
    StringBuffer topRow = new StringBuffer();
    StringBuffer bottomRow = new StringBuffer();
    for(Iterator it = p_dataV.iterator(); it.hasNext(); ){
      topRow.append("<td>" + it.next() + "</td>");
      if (it.hasNext()){
        bottomRow.append("<td>" + it.next() + "</td>");
    info = "<table><tr>";
    info += topRow.toString();
    info += "</tr><tr>";
    info += bottomRow.toString();
    info += "</tr></table>";
    return info;

  • Help transferring converted music into itunes

    here's the problem
    I converted my .wma songs to .aac songs with an outside converter because itunes kept shutting down every time i tried to convert the .wma songs there
    anyway, i converted the songs but now itunes wont let me transfer the songs in the music library
    i have tried everything, the file add to library, the folder add to library
    it wont let me transfer the converted songs
    please help I am going out of my mind here!!

    Surprising, since if they play in Quicktime they shoudl be OK in iTunes.
    I suggest go back to step 1. Take one of the original files and convert it to MP3 this time. Does that MP3 work in iTunes?

Maybe you are looking for

  • Epson NX305 no longer prints via Airport since upgrade to 10.5

    I recently upgraded my laptop from 10.4.11 to 10.5.8. Since the upgrade I can no longer print wirelessly using the laptop. The printer is an Epson NX305 all in one. I have uninstalled and reinstalled the driver multiple times. Epson says it's an Appl

  • Import gmail contacts into iPad contacts

    How to import gmail, my standard DB, contacts so that they can also be used by iPad email?

  • BOEXIR2 report embedded in aspx page

    I currently have an aspx application that passes parameters dynamically to Crystal Reports that are located in the local file system using the viewer. I am able to set the database/logon info dynamically and everything works great. We now have a demo

  • JpopupMenu with a JComboBox problem

    Hi, Well I need to make a popupMenu which contains a JComboBox, when I invoke the method show(, ,) of the popupMenu, everything looks fine. But when I press on the comboBox to view its data, I can only see the drop list and the popupMenu disappears.

  • Using rollovers and links together

    I am using InDesign CS4 to create an interactive pdf. I want to know if it is possible to apply a rollover and a hyperlink to the same text box. I know how to create a button with different rollover states but when I try to link the button to another