Big v running small compositions containing only vector files

Hey all, make both of these approaches have different impacts on the performance in AE?

Situation 1:

A composition is 19 200 x 10 800 pixels in AE (which may be greater than the size, but for the sake of discussion, this is a large size model).

It contains three complex shape layers that are purely vector images, they have a few transformations.

Situation 2:

A composition is 192 x 108 pixels in AE

It contains the same three complex layers, just smaller in the relative scale.

If these two compositions are placed in a standard composition of 1080 p...

The composition of the largest will have an impact more on performance given the rasterization of vectors, or AE will recognize the different vectors and scales and interpret them as they require the same exact amount of processing power / ram? Are there warnings here or times when performance is affected differently? Thanks for the help!

> within this secondary model, they required the same amount of rendering time

Be careful when testing like this. The second (and third and fourth...) that you use and return the same element, the result will be pulled from the cache, you can not use these subsequent runs to measure rendering time except if you purge the cache at each stage.

Tags: After Effects

Similar Questions

  • Red of containment:-only cisco 7920 seems to be contained.

    I'm running a WLC on a series of 2800 NM with version 5.0 and a LWAPP AP 1131.

    I have a Netgear access point within range of my Cisco AP 1131.

    When I turn on red for this NetGear access point containment, it seems to work, but ONLY a phone Cisco 7921 associated with the NetGear AP conttains.

    The WLC detects all other customers that are associated with the AP (my Netgear) red.

    Also, under the Red clients, it seems detect some models of Intel and Apple customers (from neighbouring networks).

    Is this a limitation of how the WLC is red containment?

    Can it detect / contain only CCX the devices off MFP with?

    Are a lot of older laptops that use cards Intel immune to this kind of containment?

    Thank you

    It's really interesting. If you do a comparison of the side-by-side with the 7921 clients & Blackberry, what differences do you see? They casually operate at speeds that are not supported by the AP? If you have data rates B turned off, for example, which could prevent the AP to see clients B.

    Maybe you could bring more a couple of customers more and see if any of them deleted.

  • I bought 50 weeks to Go on my iphone and my cpu it always says I'll run out and have only the 5 GB, I had originally. They are the same accounts and idea how to fix?

    I bought 50 weeks to Go on my iphone and my cpu it always says I'll run out and have only the 5 GB, I had originally. They are the same accounts and idea how to fix?

    Have you tried signing off iCloud desktop and then signing again? If you check on the phone, does show the plan 50 GB? Are you sure that the two devices are signed on the same iCloud account?

  • Please help - I don't understand this: because iPad can contain only the content of five Apple ID.

    I give my son my iPad.

    I try to download Apps on it and I get the message: some of the files in the iTunes Store iTunes library were not copied to the iPad because iPad can contain only the content of five Apple ID.

    As far as I know there are only 2 Apple ID involved - my own and the one we did for him as a minor.

    If someone has had this problem and can you help me to overcome.

    It is typical that this situation happens the day before her birthday - I wanted to give him tomorrow all loaded with his own stuff. It five of its apps accepted last month when I first came with the idea and now...

    Anyone?

    This means what it means: iTunes Store items are tagged with the Apple that was used to buy ID. Apparently in this case, for some reason, over 5 ID are involved. Which could include accounts that are no longer used.

    In general, it is best to follow these steps before giving your iPad to someone else: what to do before you sell or give away your iPhone, iPad or iPod touch - Apple Support

  • Satellite L505 - 10K - recovery disk contains only Windows 7 32-bit

    Hello, I have a question.

    I bought a Satellite L505 - 10 k a month ago. It came with Windows 7 x 64, 3 partitions (I don't know why, 3? seriously?). I tried to install Linux, delete the last partition, called 'Data' and I screw them completely. I used the recovery DVDs to bring the phone to default settings and I discovered the system recover is Windows 7 x 32.

    No idea why the systems are different?

    It's just a minor issue, I guess, the only bad thing is that the x 32 system recognizes not the 4 GB of RAM. I use now only 3 GB of RAM.

    Hi Cabo_Nobbdy,

    I think you should check your user manual and the specificaitions of your laptop first before starting a question. I founded the following information:
    + Operating system: Genuine Windows 7 Home Premium 64-bit (pre-installed, Toshiba-HDD recovery) and Genuine Windows 7 Home Premium 32 - bit (Toshiba-Recovery DVD) +.

    This means that the recovery for Windows 7 64-bit disk, you need to create by * you *!
    The DVD that came with your laptop recovery contains only 32-bit Windows 7, and normally, you can create the recovery disk using the Toshiba recovery disc creator. I put t understand why you didn't do it because after the first start, you get this message:
    + Important INFORMATION +.

    + your system is equipped with a hard drive recovery system. If you need repair.
    + your computer in the restaurant to original factory State, you can do it directly.
    + HDD (press F8 when you start your computer, choose "Repair your computer" +)
    + and follow the instructions in the menu) or create a media drive bootable recovery to that end. +.

    + Toshiba recommends you create recovery disk medium uses the "Toshiba Recovery Disc Creator' to ensure the +.
    + Hat you are able to restore your computer to the State of origin, installed at the factory, even if your computer +.
    + Gets severely damaged.

    But now it s too late for that and you have to order a new Toshiba recovery disc yourself:
    https://backupmedia.Toshiba.EU/landing.aspx

  • F not set paramiter to run chkdsk in read-only

    I get a notice that looks like this

    Windows - file corrupted

    The file or directory

    C:\Windows\System32|config\system.log is corrupted and unreadable. Run the Chkdsk utility.

    Well, I run the utilitiy, and it starts by saying F paramiter undefined running Chkdsk in read-only mode. How to set the 'F' paramiter?

    Thank you

    CHKDSK /F

  • "parameter f warning not specified running chkdsk in read-only mode" is this normal?

    When you run chkdsk I get the warning "Beware f parameter not specified running chkdsk in read-only mode" is this normal and if not what do I do to rectify.

    If you want that the errors you fixed must run chkdsk /f

    Make sure that you have a backup in case where.

  • the cursor is jerky and plans for 2004 flight simulator do not run smooth. This only happens when you run games. Is there a solution?

    The cursor is jerky and plans for 2004 flight simulator do not run smooth. This only happens when you run games. Is there a solution?

    Hello

    · What is the number and model of the mouse?

    · Will there be any changes made on the computer before the show?

    You can follow the steps listed in the link below: how to solve the pointer display problems mouse in Microsoft games: http://support.microsoft.com/kb/309703

  • Contains only contains one and not - how PLSQL

    Hi all

    I'm writing a plsql code I need some advice.

    How can I optimize contains only - all - contains contains not in PLSQL.

    For Ex:

    If l_string1 ContainsOnly "ABCDEFGHIJKL" (a set of values)

    If l_string2 ContainsAny ' + -/'

    If l_string3 ContainsNot "1234567890"

    Thank you

    Aman

    Hello

    If you are really determined to do not post sample data, and then publish an issue involving sample data of people who want to help you already, or readily available, such as the tables in the scott schema or HR.

    For example, consider the ename column of the table scott.emp, which has these values:

    ENAME

    ----------

    ADAMS

    ALLEN

    BLAKE

    CLARK

    FORD

    JAMES

    JONES

    KING

    MARTIN

    MILLER

    SCOTT

    SMITH

    TURNER

    WARD

    Say you're interested in finding the enames which consist exclusively of letters from the 'A' series of 'n', i.e.:

    ENAME

    ----------

    ALLEN

    BLAKE

    KING

    Here are 3 ways to do it.  (I produce these results

    ENAME NR L R

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

    ADAMS

    ALLEN OK OK OK

    BLAKE OK OK OK

    CLARK

    FORD

    JAMES

    JONES

    OK OK OK KING

    MARTIN

    MILLER

    SCOTT

    SMITH

    TURNER

    WARD

    just to test 3-way at the same time and to ensure that they are equivalent.  You might what to use conditions in a WHERE clause, and not a CASE expression.)

    This is the query that produced the above results:

    SELECT ename

    CASE

    WHEN NOT REGEXP_LIKE (ename

    , '[^A-N]'

    )

    AND THEN 'OK '.

    END AS nr

    CASE

    WHEN LTRIM (ename

    , "ABCDEFGHIJKLMN".

    ) IS NULL

    AND THEN 'OK '.

    END as l

    CASE

    WHEN REGEXP_LIKE (ename

    , '^[A-N]+$'

    )

    AND THEN 'OK '.

    END AS r

    FROM scott.emp

    ORDER BY ename

    ;

    In reply #5, you have shown that you already know how to find what lines that contain all the letters

    OTHER THAN « A » ' n '.  To find the containing enames

    ONLY ' ' 'N', you can simply use the NOT operator.  In other words, an ename contains ONLY A - N if (and only if) it does not any letter ANOTHER THAT A - N.  This is the approach used in the column above nr.  However, I think that the other ways (column l and r) are better; l is more effective.

  • Battle of external table: files that contain only a picture

    Hello

    Does anyone know if this is possible: use an external table to load files that each contain only one photo (photo) in a BLOB column?

    So: just a photo, not other columns and not many lines.

    I tried, in the sense of this article: ORACLE-DATABASE external Tables containing LOB -

    I'm starting to believe it is not possible due to the "delimited records by ' and 'fields terminated by' clauses, which are not really applicable given files (just a picture), but maybe (hopefully), I'm wrong.

    Any pointer is more than welcome!

    BANNER

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

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi

    PL/SQL Release 10.2.0.4.0 - Production

    CORE 10.2.0.4.0 Production

    AMT for HP - UX: release 10.2.0.4.0 - Production

    NLSRTL Version 10.2.0.4.0 - Production

    5 selected lines.

    SQL > drop table photo_ext is serving;

    Deleted table.

    SQL > create table photo_ext

    2 (blob_content blob

    3   )

    4 external organization

    5 (type oracle_loader

    6 default directory tmp

    7 access settings

    8 (records delimited by newline

    9 nobadfile

    10 nologfile

    11 fields completed by «,»

    12 field missing values are null

    (13)

    14 blob_filename tank (100)

    15)

    16 transformations column (lobfile (blob_filename) of the blob (tmp) blob_content)

    17)

    18 rental

    19 ("54618645837_vp3.jpg",

    20 "54618645837_vp4.jpg."

    21 "54618645837_vp2.jpg."

    22 "54618645837_vp1.jpg."

    23 "54618645837.jpg."

    24 "54618636860_vp6.jpg."

    25 "54618636860_vp5.jpg."

    26 "54618636860_vp4.jpg."

    27 "54618636860_vp3.jpg."

    28 '54618636860_vp2.jpg '.

    29       )

    30)

    31 reject limit unlimited;

    Table created.

    SQL > select DBMS_LOB.getlength (blob_content) AS blob_length of photo_ext;

    Select DBMS_LOB.getlength (blob_content) AS photo_ext blob_length

    *

    ERROR on line 1:

    ORA-29913: error in executing ODCIEXTTABLEFETCH legend

    ORA-29400: data cartridge error

    KUP-04001: doing bij openen van bestand/tmp /.

    ORA-06512: at "SYS." ORACLE_LOADER', line 52

    You need for your names to jpg files in a text file, the name of one file per line in the list, then use the name of the text file as your location in your outer table.  In the example below, I've listed just a jpg file bridge.jpg in text file test.dat.

    Scott@orcl12c > host type test.dat

    Bridge.jpg

    Scott@orcl12c > create or replace directory tmp as 'c:\my_oracle_files '.

    2.

    Created directory.

    Scott@orcl12c > create table photo_ext

    2 (blob_content blob)

    3 the external organization

    4 (type oracle_loader

    5 by default directory tmp

    6 access settings

    7 (records delimited by newline

    8 nobadfile

    9 nologfile

    10 fields completed by «,»

    11 lack of field values are null

    12 (blob_filename tank (100))

    13 column transformations

    14 (lobfile (blob_filename) of the blob (tmp) blob_content))

    15 rental ("test.dat"))

    release limit 16 unlimited

    17.

    Table created.

    Scott@orcl12c > select DBMS_LOB.getlength (blob_content) AS photo_ext blob_length

    2.

    BLOB_LENGTH

    -----------

    511500

    1 selected line.

  • 4.0EA1 - connection name can contain only alphanumeric... why?

    I just encountered this error, which is apparently design:

    Connection name can contain only alphanumeric characters, the underscore (_) and hyphen (-).

    I found this post on the forum, but was a little depressed that I never use login names are now disabled... and as I had to change one of them, I need now to change my entire naming system:

    Restriction of SQL Developer 3.2.1 patch connection name

    Exclusion of character list may or may not vary by operating system, and, roughly speaking, will probably contain...

    <:/\|?*()%&'$@^~#"> {code} 

    Can we reconsider a return to how it used to be for 4.0EA2?  I use various constructs to ensure an appropriate message is carried with the connection everywhere it goes:


    # ATTENTION #-Production


    Now I need to come up with a new naming system... <sigh>


    Greg.

    Why - I don't know there is anything that we can say that will make you happy here, but change has been to examine a few bugs of low level framework.

    You can keep your old login names. As a solution, just manually change connections with SQL Developer XML file closed.

  • Why my simple vector file is so big

    Hello, I have a lot of simple vector files created in CS6 which are more than 15 MB. I had deleted all the nuances, brushes and symbols. I have jusc can not know why these files are so big

    Here is an example:

    big_warnings.jpg

    and the weight of file .ai 17.1 MB

    link to the file: http://www.sendspace.com/file/xl6n24

    Thank you

    Hello

    I just open your file and brushes there were plenty of brushes (many duplicates and I mean a lot of duplicates), I deleted half of them and now the size is 2.1 mb. After you delete them all now 930kb. I tried to remove them all at once and it crashed, then little by little is best.

    It will take time, but you need to do a just Delete Save as them seems not to register as a change.

    hope this helps

    David

  • How to select username contains only 7 strings

    from dba_users, how to select username contains only 7 channels?

    Select decode (length (username)?) Please help. I just need to print the users whose name is exactly 7 charactars.

    Try something like
    SELECT username FROM dba_users WHERE LENGTH (username) = 7;

  • How to change the paragraph style to each paragraph that contains only one anchored object?

    Hello

    I have a document in word that should be converted in indesign. The document contains instructions, each step followed by an image.

    I managed to import the document into Indesign and applied a paragraph with numbering style to everything (text, image).

    Now, how do I change the the paragraph style to each paragraph that contains only an image? I need to get rid of the numbering.

    Thanks in advance.

    If the images are all anchored objects, you can use find/replace to find the anchor point and change the paragraph style only once for all paragraphs.

  • check if a string contains only some characters

    I'm working on a java program that converts the Roman numbers. The user enters a string, and I need to check to make sure that it contains MDCLXVI and if he doesn't I will get them the input again string. I thought I'd do a while loop but I'm not sure if it's the smart way to make or the syntax to perform the check.

    Here was a thought on the control with a while loop, but I've never used it before and maybe build evil.
    while (!Pattern.matches("MDCLXVI", firstRoman))
            {
            System.out.print("Not a valid Roman Number please try again");
            firstRoman = firstRoman.toUpperCase();
            }
    My Code is as follows:
    // Ask for user to input firstRoman Number
            System.out.print("Enter your first Roman Number:");
            // add the Roman Number to the String variable
            firstRoman = keyboard.nextLine();
            firstRoman = firstRoman.toUpperCase();
    Once they enter in the it, I want to check to make sure that it has characters MDCLXVI and if it contains any other characters then I will provide a new object Scanner keyboard to try again and if it fails again, it will go to the option to try again until they put in a string that contains only the characters above. I don't know where to go here to get the while loop has worked. New to Java and I got my program work properly when I put good known numbers of novel, but I want to take incorrect entries.

    Any help would be appreciated.

    Thank you
    Wally

    I put the code for my main program and my class below just in case. I have already met the requirements of the teacher if the project is done, I'm just trying to improve.
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package myname.project.pkg6;
    
    import java.util.Scanner;
    import java.util.regex.Pattern;
    
    /**
     *
     * @author wsteadma
     */
    public class mynameProject6 {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            
            // Used for testing
            String firstRoman;
            String secondRoman;
            
            
            Scanner keyboard = new Scanner(System.in);
    
            
            // Ask for user to input firstRoman Number
            System.out.print("Enter your first Roman Number:");
            // add the Roman Number to the String variable
            firstRoman = keyboard.nextLine();
            firstRoman = firstRoman.toUpperCase();
            
                  
            // Ask for user to input secondRoman Number
            System.out.print("Enter your second Roman Number:");
            // add the Roman Number to the String variable
            secondRoman = keyboard.nextLine(); // Add the name input into the name variable
            secondRoman = secondRoman.toUpperCase();
            
            
            //Creating first instance of Roman Numbers class
            Roman firstNumber = new Roman(firstRoman);
            Roman secondNumber = new Roman(secondRoman);
            
            System.out.println("Printout of the created roman numbers");
            //Prints out the Roman Number
            firstNumber.printRoman();
            secondNumber.printRoman();
            
            
            // Convert Roman to Decimal
            firstNumber.setDecimal(firstRoman);
            secondNumber.setDecimal(secondRoman);
            
            System.out.println("Viewing the Decimal values for the two defined instances");
            //Prints decimal Numbers
            firstNumber.printDecimal();  
            secondNumber.printDecimal();
            
            System.out.println("Adding the Roman Numbers and returning new Roman value");
            Roman romanAdd;
            romanAdd = firstNumber.addRoman(secondNumber);
            romanAdd.printRoman();
    
            System.out.println("Subtracting the Roman Numbers and return new Roman value");
            Roman romanSub;
            romanSub = firstNumber.subRoman(secondNumber);
            romanSub.printRoman();
        }
    }
    CLASS:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package myname.project.pkg6;
    
    /**
     *
     * @author wsteadma
     */
    public class Roman {
    
        private String romNumber;
        private int decNumber;
    
        public Roman(String rNumber) {
            romNumber = rNumber;
        }
    
        public String getRoman() {
            return romNumber;
        }
        
        public int getDecimal()
        {
        return decNumber;
        }
    
        public void printRoman() {
            System.out.println("The Roman Number is " + romNumber);
        }
    
        public void printDecimal() {
            System.out.println("The Decimal Number is " + decNumber);
        }
    
        // Converts a roman number string into a decimal value
        public int setDecimal(String romNum) {
            int charValue = 0;
            char[] characters = new char[romNum.length()];
    
            //System.out.println("romNum length is " + romNum.length());
            for (int counter = 0; counter < romNum.length(); counter++) {
                characters[counter] = romNum.charAt(counter);
                //System.out.println(characters[counter]);
            }
    
            for (int sCounter = 0; sCounter < romNum.length(); sCounter++) {
                if (characters[sCounter] == 'M'  || characters[sCounter] == 'm') {
                    charValue += 1000;
                } else if (characters[sCounter] == 'D' || characters[sCounter] == 'd') {
                    charValue += 500;
                } else if (characters[sCounter] == 'C' || characters[sCounter] == 'c') {
                    charValue += 100;
                } else if (characters[sCounter] == 'L' || characters[sCounter] == 'l') {
                    charValue += 50;
                } else if (characters[sCounter] == 'X' || characters[sCounter] == 'x') {
                    charValue += 10;
                } else if (characters[sCounter] == 'V' || characters[sCounter] == 'v') {
                    charValue += 5;
                } else if (characters[sCounter] == 'I' || characters[sCounter] == 'i') {
                    charValue += 1;
                }
            
            }
            decNumber = charValue;
            return charValue;
        }
    
        // Converts a decomal number to a roman number
        public String setDec2Roman(int decNum) {
            String newRoman = "";
    
            while (decNum >= 1000) {
                newRoman += "M";
                decNum -= 1000;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 500) {
                newRoman += "D";
                decNum -= 500;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 100) {
                newRoman += "C";
                decNum -= 100;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 50) {
                newRoman += "L";
                decNum -= 50;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 10) {
                newRoman += "X";
                decNum -= 10;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum >= 5) {
                newRoman += "V";
                decNum -= 5;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
    
            while (decNum > 0) {
                newRoman += "I";
                decNum -= 1;
                //System.out.println(decNum);
                //System.out.println(newRoman);
            }
            return newRoman;
        }
    
        public Roman addRoman(Roman newRom) {
            int totRom = newRom.setDecimal(newRom.romNumber) + decNumber;
            romNumber = newRom.setDec2Roman(totRom);
            return new Roman(romNumber);
        }
        
        public Roman subRoman(Roman subRom) {
            int totRom = decNumber - subRom.setDecimal(subRom.romNumber);
            romNumber = subRom.setDec2Roman(totRom);
            return new Roman(romNumber);
        }
        
    }

    While (!.) Pattern.Matches ("MDCLXVI", firstRoman))

    Try "[MDCLXVI] *" and see if it's better

    {
    System.out.Print ("a valid Roman Number please try again");
    firstRoman = firstRoman.toUpperCase ();
    }

    My Code is as follows:

    // Ask for user to input firstRoman Number
    System.out.print("Enter your first Roman Number:");
    // add the Roman Number to the String variable
    firstRoman = keyboard.nextLine();
    firstRoman = firstRoman.toUpperCase();
    

    Once they enter in the it, I want to check to make sure that it has characters MDCLXVI and if it contains any other characters then I will provide a new object Scanner keyboard to try again and if it fails again, it will go to the option to try again until they put in a string that contains only the characters above. I don't know where to go here to get the while loop has worked. New to Java and I got my program work properly when I put good known numbers of novel, but I want to take incorrect entries.

    Any help would be appreciated.

    Thank you
    Wally

    I put the code for my main program and my class below just in case. I have already met the requirements of the teacher if the project is done, I'm just trying to improve.

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package myname.project.pkg6;
    
    import java.util.Scanner;
    import java.util.regex.Pattern;
    
    /**
    *
    * @author wsteadma
    */
    public class mynameProject6 {
    
    /**
    * @param args the command line arguments
    */
    public static void main(String[] args) {
    
    // Used for testing
    String firstRoman;
    String secondRoman;
    
    Scanner keyboard = new Scanner(System.in);
    
    // Ask for user to input firstRoman Number
    System.out.print("Enter your first Roman Number:");
    // add the Roman Number to the String variable
    firstRoman = keyboard.nextLine();
    firstRoman = firstRoman.toUpperCase();
    
    // Ask for user to input secondRoman Number
    System.out.print("Enter your second Roman Number:");
    // add the Roman Number to the String variable
    secondRoman = keyboard.nextLine(); // Add the name input into the name variable
    secondRoman = secondRoman.toUpperCase();
    
    //Creating first instance of Roman Numbers class
    Roman firstNumber = new Roman(firstRoman);
    Roman secondNumber = new Roman(secondRoman);
    
    System.out.println("Printout of the created roman numbers");
    //Prints out the Roman Number
    firstNumber.printRoman();
    secondNumber.printRoman();
    
    // Convert Roman to Decimal
    firstNumber.setDecimal(firstRoman);
    secondNumber.setDecimal(secondRoman);
    
    System.out.println("Viewing the Decimal values for the two defined instances");
    //Prints decimal Numbers
    firstNumber.printDecimal();
    secondNumber.printDecimal();
    
    System.out.println("Adding the Roman Numbers and returning new Roman value");
    Roman romanAdd;
    romanAdd = firstNumber.addRoman(secondNumber);
    romanAdd.printRoman();
    
    System.out.println("Subtracting the Roman Numbers and return new Roman value");
    Roman romanSub;
    romanSub = firstNumber.subRoman(secondNumber);
    romanSub.printRoman();
    }
    }
    

    CLASS:

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package myname.project.pkg6;
    
    /**
    *
    * @author wsteadma
    */
    public class Roman {
    
    private String romNumber;
    private int decNumber;
    
    public Roman(String rNumber) {
    romNumber = rNumber;
    }
    
    public String getRoman() {
    return romNumber;
    }
    
    public int getDecimal()
    {
    return decNumber;
    }
    
    public void printRoman() {
    System.out.println("The Roman Number is " + romNumber);
    }
    
    public void printDecimal() {
    System.out.println("The Decimal Number is " + decNumber);
    }
    
    // Converts a roman number string into a decimal value
    public int setDecimal(String romNum) {
    int charValue = 0;
    char[] characters = new char[romNum.length()];
    
    //System.out.println("romNum length is " + romNum.length());
    for (int counter = 0; counter < romNum.length(); counter++) {
    characters[counter] = romNum.charAt(counter);
    //System.out.println(characters[counter]);
    }
    
    for (int sCounter = 0; sCounter < romNum.length(); sCounter++) {
    if (characters[sCounter] == 'M'  || characters[sCounter] == 'm') {
    charValue += 1000;
    } else if (characters[sCounter] == 'D' || characters[sCounter] == 'd') {
    charValue += 500;
    } else if (characters[sCounter] == 'C' || characters[sCounter] == 'c') {
    charValue += 100;
    } else if (characters[sCounter] == 'L' || characters[sCounter] == 'l') {
    charValue += 50;
    } else if (characters[sCounter] == 'X' || characters[sCounter] == 'x') {
    charValue += 10;
    } else if (characters[sCounter] == 'V' || characters[sCounter] == 'v') {
    charValue += 5;
    } else if (characters[sCounter] == 'I' || characters[sCounter] == 'i') {
    charValue += 1;
    }
    
    }
    decNumber = charValue;
    return charValue;
    }
    
    // Converts a decomal number to a roman number
    public String setDec2Roman(int decNum) {
    String newRoman = "";
    
    while (decNum >= 1000) {
    newRoman += "M";
    decNum -= 1000;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 500) {
    newRoman += "D";
    decNum -= 500;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 100) {
    newRoman += "C";
    decNum -= 100;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 50) {
    newRoman += "L";
    decNum -= 50;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 10) {
    newRoman += "X";
    decNum -= 10;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum >= 5) {
    newRoman += "V";
    decNum -= 5;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    
    while (decNum > 0) {
    newRoman += "I";
    decNum -= 1;
    //System.out.println(decNum);
    //System.out.println(newRoman);
    }
    return newRoman;
    }
    
    public Roman addRoman(Roman newRom) {
    int totRom = newRom.setDecimal(newRom.romNumber) + decNumber;
    romNumber = newRom.setDec2Roman(totRom);
    return new Roman(romNumber);
    }
    
    public Roman subRoman(Roman subRom) {
    int totRom = decNumber - subRom.setDecimal(subRom.romNumber);
    romNumber = subRom.setDec2Roman(totRom);
    return new Roman(romNumber);
    }
    
    }
    

Maybe you are looking for