Graphics of class practical help

Hello

I am confuced with x and y params below. Can someone help me understand this properly.

A Visual help will be great.

See you soon

fillRect

public void fillRect(int x,
                     int y,
                     int width,
                     int height)
Fills a rectangle.

Note that if global alpha is defined or the fill color includes alpha then the color of the rectangle is mixed on the content on the surface of the target.

Use this method to fill a rectangle. You specify the top and left of the rectangle edges and its width and its height. This method paints the right edge of the rect to (x+width-1) , the lower edge at (y+height-1) . The resulting rectangle will thus have an area of width * height .

If you pass a zero or negative value for either height or width, this method draws nothing.

Parameters:
x -The left rectangle border.
y -Edge of the upper rectangle.
width -Width of the rectangle.
height -Height of the rectangle.

you have an area that you use for the design, in a field, for example, the area of fields.

x and y are the coordinates of the upper left corner.

If you want to fill the entire area, you can use x = 0 and y = 0 and setting height/width values in your area.

If you want to leave a small strip on the top, you can use x = 1

a small strip on the left would be y = 1

etc.

Tags: BlackBerry Developers

Similar Questions

  • Choose a graphics card, card - please help!

    Hello!  I'm looking to customize and purchase a Touchsmart 610 q, but I am struggling with the choice of a graphics card.  Online search has turned into a huge headache, confusion, so I hope that someone here will help!

    My options are:

    • 1 GB AMD Radeon HD 6450A
    • 1 GB NVIDIA GeForce GT 425M
    • 2 GB AMD Radeon HD 6550 has
    • 2 GB NVIDIA GeForce GT 425M

    I don't know if it's useful knowledge, but here's the rest of the features:

    • Windows 7 Home Premium 64-bit
    • I7-2600 processor with Turbo Boost technology (up to 3.8 GHz, 8 MB cache)
    • 16GB DDR3 - 1066 MHz SODIMM (4 DIMMs)
    • 2 TB hard drive 7200 RPM SATA
    • Engravers Blu - Ray - are "Blu - ray Slot-load & SuperMulti DVD burner drive" a better option?  They are the same price...
    • LAN card wireless - n Premium and Bluetooth
    • 6-in-1 memory card reader, 4 total USB (2.0), Beats audio [with e/s for the TV Tuner option]
    • Tuner TV, ATSC-NTSC with PVR, remote
    • Integrated sound
    • Console games of HDMI, input HDMI [for discrete graphics]

    I am a student academic who is actively using AutoCAD and will soon lead Revit and SolidWorks beside her.  As I understand it, these graphics cards are far from great, but can anyone recommend which would be the most promising for me - at least until I can do the upgrade?  Any advice on upgrades will be appreciated as well!

    Thanks for your time, and we hope for your help!  Have a great day!

    Hello

    Although the HP Touchsmart is an excellent product in its own right, I would not recommend it based on the applications that you have mentioned.  Internal MMX video card is the weak point.  The Touchsmart has the CPU and memory, but the video features are simply not sufficient to really good AutoCAD programs.

    I recommend that contact you each suppliers ask and get a recommendation for your particular needs.

  • Updating the Intel Graphics adapter; Error 80070103 - HELP Update Windows!

    Hi, I am trying to install an optional update for my HP computer through Windows Update, titled, "Intel Corporation - graphic adapter WDDM1.1, WDDM1.2 graphics - Intel(r) HD Graphics. If I do not install this update, my screen flashes every once in a while and then say "Graphics card Intel for Windows 7 is is crushed, but recovered". If I try to install the update, it sits there for a minute or two, then said the update failed; Error 80070103, Windows Update encountered an unknown error. "Help, please!

    Hi, I am trying to install an optional update for my HP computer through Windows Update, titled, "Intel Corporation - graphic adapter WDDM1.1, WDDM1.2 graphics - Intel(r) HD Graphics. If I do not install this update, my screen flashes every once in a while and then say "Graphics card Intel for Windows 7 is is crushed, but recovered". If I try to install the update, it sits there for a minute or two, then said the update failed; Error 80070103, Windows Update encountered an unknown error. "Help, please!

    You should only as a last resort, to install the drivers of devices offered by Windows Update. I suggest that you go to the link below and search for the latest drivers for your display device.

    From Intel's Download Center.

    http://Downloadcenter.Intel.com/default.aspx

  • OOP communication between classes. Help, please!

    It is a slight continuation to a previous topic I posted.

    Description

    control_Class - is the attached main class dtö the .fla this class contains this line of code

    addChild (levels_bg)

    levels_bg -is a movieClip that has its own class of Levels_BG

    Levels_BG - after user selection his work monitoring

    control_Class.startlevel (e.currentTarget.shape_obj.text_box. (Text);

    which is a function in the control_Class:

    static public void startlevel (levelname:String): String

    {

    trace (LevelName.substr(LevelName.Length-1,LevelName.Length));

    }

    My problem is that when in this function, I can't draw or use one of the functions or variable in control_Class.

    for example.

    static public void startlevel (levelname:String): String

    {

    trace (LevelName.substr(LevelName.Length-1,LevelName.Length));

    RunThis();

    }

    private function runthis (): void

    {

    trace ("it works")

    }

    Hope someone could help me with this. Relatively new to OOP and I don't know if I'm doing this right.

    See you soon,.

    Pavel




    you will need to use static variables in control_Class.  I'm not sure it's a good Setup, but you have no instance control_Class shown in your code.

  • Slaughter of BG sound with another class please help!

    Hey hope someone can shine a light on this for me, been stuggling with that for awhile now.

    I had a background sound to play, which is in a separate category codes:

    Class: screen_Control

    public function randonizer_SND (): void

    {

    var r: int = Math.floor (Math.random () * 17);

    if (r == 1)

    {

    currentBG_SND = snd1_BG;

    }

    if (r == 2)

    {

    currentBG_SND = snd2_BG;

    }

    if (r == 3)

    {

    currentBG_SND = snd3_BG;

    }

    if (r == 4)

    {

    currentBG_SND = snd4_BG;

    }

    if (r == 5)

    {

    currentBG_SND = snd5_BG;

    }

    if (r == 6)

    {

    currentBG_SND = snd6_BG;

    }

    if (r == 7)

    {

    currentBG_SND = snd7_BG;

    }

    if (r == 8)

    {

    currentBG_SND = snd8_BG;

    }

    if (r == 9)

    {

    currentBG_SND = snd9_BG;

    }

    if (r == 10)

    {

    currentBG_SND = snd10_BG;

    }

    if (r == 11)

    {

    currentBG_SND = snd11_BG;

    }

    if (r == 12)

    {

    currentBG_SND = snd12_BG;

    }

    if (r == 13)

    {

    currentBG_SND = snd13_BG;

    }

    if (r == 14)

    {

    currentBG_SND = snd14_BG;

    }

    if (r == 15)

    {

    currentBG_SND = snd15_BG;

    }

    if (r == 16)

    {

    currentBG_SND = snd16_BG;

    }

    playSND();

    }

    public function playSND (): void

    {

    snd_BG_Channel = currentBG_SND.play (0,1);

    snd_BG_Transform.volume = 1;

    snd_BG_Channel.soundTransform = snd_BG_Transform;

    snd_BG_Channel.addEventListener (Event.SOUND_COMPLETE, nextSnd);

    }

    nextSnd(event:Event):void of the public service

    {

    randonizer_SND();

    }

    Is what I try to achieve this sound to stop playing when a "button" is linked and then start playing again back in the main screen.

    The "button" is controlled in a different category, and when I try to put a stop function there is to the sound I have the following error:

    1119: access of property may be undefined snd_BG_Channel through a reference with static type class.

    This is the code I use to try to stop the channel:

    screen_Control.snd_BG_Channel.stop ();

    If you have an idea of what I'm doing wrong please help!

    THX pavel

    Did you check this line? public var snd_BG_Channel:SoundChannel;

    Must be:

    public static var snd_BG_Channel:SoundChannel;

  • positioning or test the mouse on the listener in a class please help!

    Hey,.

    Im tring to redo most of my projects I created of up to class and packages, but this seems to be a mission... stuck like every small step.

    I have the gameMain_Controls class which is the linkaged of the FLA in fact.

    Then I have a custom cursor class and a class of tank

    the gameMain_Controls pulls objects in the scene as children of the fron the tank class background.

    now my problem is to get the cursor to mouse over hittest and make at least a trace out put:

    code im trying right now

    which is also in a different class... called the rollOver_Controls:

    If (flap_Control.flap.hitTestObject (Dino_Control.layla))

    {

    trace ("all hit");

    }

    on the other

    {

    trace ("NO hit");

    }

    but the hittest occurs just never im guessing the problem which is the location of the object, the container, I mean... .but when I try to link this way I have more problems

    Please help sumone

    THX pavel

    You are welcome.

  • The scale of the vector graphics. Can someone help me...

    Hello

    I confess that I'm not a coder. I tried to learn java script, but I think that's not in my "nature".

    If anyone can help with this one? I have a book with hundreds of vector graphics inserted (wmf and eps). When there is a change in the graphic dimension and I recreate a link to the files to update the Indesign CS5 content, the result inside the container is not updated to the real dimensions of the chart. I have to select the graphic, resize to 100% and after that I must apply "to adapt to the content of the framework. I think that it is very easy to achieve with a script. Can someone help me?

    Thanks in advance,

    Maria

    Although I don't know script and can announce that GREP, I am a student and I use it every day with great benefits...

    It is easy to script, but only for those who know how to do... InDesign would win easy to save, such as Illustrator and Photoshop Actions... No reason to worry, though. Just ask in the friendly Scripting Forum

    In addition, a good way to try complicated GREP discovered is to build using a GREP style, with a character style that applies Hot Pink pointed out Comic Sans Bold to "found" text Turn on the Preview button, write your GREP, check if it highlights everything that you want, and then copy the definition and remove the GREP style. Paste the definition into the search field and go.

    This Javascript comes in two parts: the first controls to reduce by half if you have a graphic selected with the black arrow (a normal selection). If so, this single chart is resized and mounted. Otherwise, it scans all the graphics of the document as a whole and apply controls to all the graphics. If you think it's a little too much, do not include the 2nd halve of the script, everything after the line "eventually."

    Copy what you need, paste it into the Adobe ESTK editor and save in your Script file as "resizeGraphic.jsx". Select an image and double-click the script, or otherwise, do not select a single chart and run it to resize / refit everything. (But only if you dare).

    If you need isn't a lot, don't forget that you can add a shortcut to the script with the command editor keyboard; It automatically shows you in the "Scripts" section in there.

    //DESCRIPTION:Size to 100% and Fit to Frame for selected image
    if (app.selection.length == 1 && app.selection[0].hasOwnProperty("graphics") && app.selection[0].graphics.length == 1)
    {
         app.selection[0].graphics[0].absoluteHorizontalScale = app.selection[0].graphics[0].absoluteVerticalScale = 100;
         app.selection[0].fit (FitOptions.FRAME_TO_CONTENT);
    }
    
    // OPTIONALLY!
    else
    {
         g = app.activeDocument.allGraphics;
    
         for (i=0; i		   
  • H9-1135 phoenix upgrade graphics card inquiry, please help!

    I am hoping to update my video graphics card. Can my Phoenix H9-1135 (stock to date system) support this video graphics card?

    GIGABYTE GV - N760OC - 4GD GeForce GTX 760 4GB 256 - bit GDDR5 PCI Express 3.0 HDCP Ready gets 3 X 450W video card

    Posted below are the video graphic specifications for my Phoenix H9-1135: graphic video

    Here are the specifications of your desktop HP Pavilion HPE h9-1135 Phoenix. You will need to ensure that power plant is rated at a minimum of 500 watts and has at least a 6 connector pins and a connector 8 pin for the graphics card GTX 760. In addition, that the card is long 11.5 ", you need to measure along the plane of the PCIe x 16 location at the rear of the case more far to determine if there is enough space for the map. If you find all the obstacles before reaching approximately 12 ", the map is inappropriate.

    If you have any other questions, feel free to ask.

    Please click the White Star of KUDOS to show your appreciation

  • HP Pavilion 500-527nb: GTX-750TI (Graphics) upgrade. Need help please, thx.

    Hello

    A very quick question.  The GeForce GTX 750 tiis usable on my HP Pavilion 500-527nb desktop PC?

    It is WITHOUT changing my diet, which has 180W...

    That power seems too low, but the PC came with a GTX 745 (OEM) that uses the same power that the GTX 750ti, yet when I check the specs on the site of GeForce, it says power to minimum power supply must be 300 w (for both 745 oem and 750 ti)...  So, I'm confused.

    Thanks for any help.

    Hi again Kebess,

    Thanks for the quick response!

    I don't know the problem install the ti GTX 750, but I can't guarantee that you won't have problems.

    Best regards

  • How to format my tables (Dynamics, pivots, etc.) by using a css or javascript class? Help.

    Hi all

    I use OBIEE 11 G.

    I create my own skin or according to an alternative css class to format my tables in a specific way.

    Since it is a prototype, formatting each in the dashboard is not an alternative, since it must do again and again.

    The goal is to have attached to my skin (I named s_prototipo and sk_prototipo) and if I change the skin, the dashboard will also change...

    The skin is in place and functioning (already changed the logo, the format of the bars on top, etc.), but I can't find how can I do with PivotTables.

    Question: How can I format my paintings with a skin?

    An example or idea?


    I tried to look at the elements but it is working, there is no specific category that I would find it through...


    Best regards and many thanks,

    Frederico.

    To change the default style of tables and PivotTables, you can go to:

    (1) views.css

    (2) change the right css properties, such as: PTCHC0, 1, 2, 3...

    You can then change the color, background image, etc. etc. and you will get the table format has changed to the default skin.

    Kind regards

    Frederico.

  • DRS practice help question

    The self-paced review and having contact with a question time and I was wondering if someone can help out me on it. I have attached the issue to this subject.

    Hi friend

    True

    Fake

    True

    True

    Fake

    The end: reference:http://frankdenneman.nl/2010/02/15/impact-of-host-local-vm-swap-on-ha-and-drs/

    Let me know if you need clarification on any point. Also, let me know if you disagree with any one.

  • Best practice help to spend again vCenter with linked Clones

    Hello everyone

    I searched for days, but couldn't find a way clear of hover over our view 5.2 installation of a new vCenter.  The equipment was aging, and we decided to upgrade and move to 5.5.

    We have rebuilt and forwarded via our guests not VDI to the new vCenter 5.5 environment. I found a few documents, but nothing that tells us if it can be done actually.

    We tried to go in the service of the composer initially to the new instance of vCenter and maintenance, we do the DB on the old Victoria Cross, if it worked I émigrerait the DB above the new Victoria Cross

    We first tried these steps however VMware Documentation Library after removing the old VC service composer and installed on VC New (with ODBC connections mapped to the old VC) it wouldn't work.  We were moving to the VC 5.1 leaving guests ESXi running VDI attached to 5.1

    Then I did more research and discovered the related clones are all related to the database of the old VC and moving them is not possible per this KB KB VMware: workstations managed by moving between servers view vCenter is not supported

    I saw an article here that suggested dumping a bunch of DB and rebuild the new VC with the same name and IP address, but I can't do so because the new instance is already upwards and on a new host name / IP migrate view VCenter (with linked Clones) to new hardware

    I also found this where someone is in the same boat and suggested to recreate pools.  The discussion is not in the details so I wonder if someone can clarify this: migration View Composer and vCenter

    I have about 20 people on VDI in a combination of clones using 3 connected pools and personal drives.  Given that all the info from linked clone was linked to the former base of VC, it doesn't seem wise to move it to the wire.  This would be possible: I still have the base image with all the snapshots for each pool.

    • Persistent backup drives
    • Note the configuration of each pool
    • Disable the commissioning
    • Create DB on VC 55 composer vacuum
    • Create the ODBC connection for composer on VC 55
    • **
    • Do more ESXi hosts to 55 VC
    • Remove existing VMs (will be not able to connect to them at this point anyway)
    • Remove the old VC entry admin view / delete existing pools
    • Install the composer on 55, and then tap new ODBC
    • Create new instance vCenter in Admin 55-pointing mode
    • Recreate pools
    • Import and attach persistent disks (http://pubs.vmware.com/view-50/index.jsp?topic=/com.vmware.view.administration.doc/GUID-BDFCCEC8-682F-4421-8810-06108CBE8D20.html)
    • Recreate events empty DB on 55
    • Reconfigure the parameter DB events in Admin mode

    Any help would be greatly appreciated as I can't find an exact way to do

    Well, I'm pleased to say it worked! I had a few problems by removing existing pools. View repeated deletion but nothing happened. In the end I had to use ADSIedit to connect to the server to manually remove all the old discs VM and pool

    After the installation of the composer on the VC 5.5, I was able to create a login in admin mode and then start to re - create the pools.

    We were able to successfully reattach each disc persistent owners planned.  Did some spot checks and desktop users, bookmarks etc. all worked

    It is a tedious process, but it does not work. I hope that VMware can create an article for it.  God knows that I searched for days, I had to read a lot of things just for this plan.

  • I always have problems with classes: (, attaching a class?) Help!

    I have a Main.as which is asigned as my DocumnetClass

    This class creates a MovieClip called it childish

    var c:Child = new child;

    addChild (c);

    I have a class called also Child.as

    package {}

    import flash.display.MovieClip;

    Child/public class extends MovieClip

    {

    This number will correspond to the index details in the tables that belong to this child

    var ChildNumber:Number;

    public void Child() {}

    DeclareChildStats();

    }

    private void DeclareChildStats()

    {

    }

    }

    }

    This class will define the stats for each indvidual child, but I can make it work when I run the swf that I just get

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    Capture.JPG

    Bacicly, I add the child to the scene.

    I want the child to use the Child.as class.

    But he used and I get errors. Why things can't be simple

    This should be

    var c:Child = new Child();

    and what line of code is triggering the error (file > publishing settings > swf > check 'allow debugging')?

  • 6 - 1254er is not HP Envy Switchable Graphics Win 8.1 HELP!

    installed driver 10.18.10.3277 does not work

    I'm sorry but I can't take it anymore and sold this piece of crap and bought a lenovo

    replacement of the laptop has been all of the faulty lot and does not touchpad and video switching
    never buy HP EVER!

  • HP Pavilion g6-2123us Notebook: graphics card update?

    Hey I was wondering if I could replace the graphics card in my laptop HP Pavilion g6-2123us

    My specs are:

    AMD Dual - Core A6 - 4400M acceleration processor 3.0GHz/2.6GHz

    4 GB DDR3 SDRAM (1 DIMM)

    AMD Radeon HD 7520 G Discrete-Class graphics card and up to 2036 MB total graphics memory

    Windows 7 64 bit

    I tried to play Fallout 4 with this, but the game was laggy, and I think that it may have to do with the graphics card

    Any help would be appreciated!

    Hello

    No, you can't. Option: sell this computer and buy a new

    Kind regards.

Maybe you are looking for

  • What should I do when the correct CVV number is not being accepted by iCloud?

    I'm trying to add a family member to the iCloud account, but she asked the CVV number for the account.  I entered the right CVV number, but he says it's the wrong number.  What should I do?

  • You can book the iphone7 and pick up in-store on September 16?

    Last year, Apple allowed you to pre-order the iPhone model you want and pick up in store in a few hours. Will it be the same situation with the launch of the iPhone on 16 September 7?

  • See not all users after reboot

    I put two on macbook iCloud account. When I log out I see screen with the other user, after reboot or turn off / I see that my profile and host, the other user has not.

  • Ring of table question

    Hello I'm using LabWindows/CVI 8.5 and I have a question about the use of the rings in a table cell.  I have a table that has 10 columns, and the columns are a mixture of numerical values, chains and rings - that is to say 2 columns are rings. The ta

  • installation in safe mode

    I have problems with malware and want to do a complete cleaning window 7 in safe mode. can I do in safe mode since I have problems after a normal system startup?