Questions tagged [bounds]

In user interfaces and graphics, bounds refer to the size and location of a window or view.

In user interfaces and graphics, bounds refers to the size and location of a window or view. In 2D graphics, this is broken down into four parts. Combinations often used include:

  • x-location, y-location, width, and height.
  • x-location, y-location, right, bottom.

Likewise, in 3D graphics, bounds are often broken into 6 components:

  • x, y, z, width, height, depth
769 questions
2
votes
2 answers

AS3: weird getBounds() result

EDIT2: It seems that the big numbers are created because the movieclip doesnt hold any bipmapdata, but Im yet not sure about it, but my real mistake was that I just forgot "this" infront of one "getBounds" ... project size was to big and I couldnt…
tschery
  • 153
  • 2
  • 15
2
votes
1 answer

Google Maps API geocoder, restricting by bounds

I am trying to restrict the returned addresses from Google Maps geocoder API like so: var geocoder = new google.maps.Geocoder(); var auVicSwLatLon = new google.maps.LatLng(-39.234713, 140.962526); var auVicNeLatLon = new…
bguiz
  • 27,371
  • 47
  • 154
  • 243
2
votes
1 answer

On iOS, can changing a UIView object's frame and center alter its internal coordinate system?

On iOS, if we change a view's frame, we change its bounds, and if we change its bounds, we change its frame. But we can change the internal coordinate system of a view by: CGRect b = v.bounds; // v is the UIView object b.origin.x =…
Jeremy L
  • 3,770
  • 6
  • 41
  • 62
2
votes
2 answers

iPhone iOS large UIView gets clipped to 320x460 when displayed. How to prevent?

I have a 850x1100 UIView defined in a storyboard it is 4 times the size of a normal window, and I'm using it as a PDF generation template. The view is wrapped within a scrollview. Yet when I display the view, its frame gets resized and becomes…
Alex Stone
  • 46,408
  • 55
  • 231
  • 407
1
vote
2 answers

Drag Image in HTML5 Canvas with defined Boundaries

I am working on HTML5 Canvas 2D, is there any function which can help to do like example given in below link - http://www.html5canvastutorials.com/kineticjs/html5-canvas-drag-and-drop-bounds-tutorial-with-kineticjs/
Jalpa Bhavsar
  • 51
  • 2
  • 3
1
vote
1 answer

Efficiently treating OOB, 2d array access

Say you're trying to visit an array in a checkerboard pattern: 0 1 2 3 4 5 6 7 0 o • o • o • o • 1 • o • o • o • o 2 o • o • o • o • 3 • o • o • o • o 4 o • o • o • o • 5 • o • o • o • o 6 o • o • o • o • 7 • o • o • o • o So, say you're…
bobobobo
  • 64,917
  • 62
  • 258
  • 363
1
vote
0 answers

How to query RouteBoxer bounds using XML (from PHP/MySQL

I have a MySQL db that I convert to XML on the fly for querying a RouteBoxer page. I began all of these pages from Google examples. So, in order to get my XML, I have:
user1259798
  • 171
  • 1
  • 16
1
vote
1 answer

Mysql, How to find intersaction of rectangular bounds

I have saved bounds in my database table coming from google maps. Now i have to show these entries based on matching the bounds. For example, I have a table for dashboard entries that are based on locations/bounds. I am saving bounds against each…
Suleman Siddiqui
  • 411
  • 2
  • 5
  • 16
1
vote
1 answer

Bounds.Intersect for WPF

I have a Winforms app that allows the user to drag and drop some labels around the screen. The objective being to put the matching labels on top of each other. I keep a reference to these labels in a list, and at the moment i'm checking to see if…
Lucas
  • 643
  • 1
  • 9
  • 21
1
vote
1 answer

Traversing a Grid of N Cells without declaring 2 variables (rows and columns)

I have been developing a game for canvas in JavaScript. I have chosen to create the game without limitations to the world size grid. So if they wish to play with a grid size of N, the logic will generate it. I have been working with bounds…
itignition
  • 31
  • 5
1
vote
2 answers

Caching self.bounds in a subclass of UIView

I'm subclassing UIView to make a custom view by overriding drawRect:. I need to find a point that is equal to 10 percent of the View's width. Of course, that distance is trivial to calculate (self.bounds.size.width/10.0f). I would like to cache this…
aleph_null
  • 5,766
  • 2
  • 24
  • 39
1
vote
2 answers

Remove extra blank elements in an array VBA

I have created an array for a data dump over 35k rows long. I want to only add items in the array that contain 16250 (about 1100 items). So far I've created an array, but it goes all the way to 35k. How do I shorten the limit of the array to stop…
Billy
  • 11
  • 1
1
vote
1 answer

Fitting Data with Scipy Optimize Minimize with Both Constraints and Bounds

I'm currently trying to fit some data using Scipy's optimize.minimize function in Python. I have both constraints and bounds that need to be considered during the optimization process. I have found that the method 'trust-constr' works well for me,…
1
vote
2 answers

Set minimum data interval for y axes on Highcharts

I need to plot a chart using Highcharts, and I have to sort of round down data not to plot very little variations around small values. Eg. I have yAxis data that moves between 0 and 10, and the plot is ok. Eg. I have yAxis data that moves between…
marzapower
  • 5,531
  • 7
  • 38
  • 76
1
vote
1 answer

moving the image (Animated.Image) only within the view react native

I want to move images inside the view but the images should not go beyond the boundaries of the view(screen) like that: https://snack.expo.dev/@aisylu24/draggable-image-within-parent-boundaries- click to see screenshot - i want to move only inside…