Here im trying to edit a macro setup for 1920x1080 to 1366x768(im using rn) If in 1920x1080, x=1621 and y=71 How to convert xy value to my resolution 1366x768?
Formula for converting XY pixel coordinate in 1920x1080 to 1366x768
106 views Asked by fahmi zikrul At
1
There are 1 answers
Related Questions in MACROS
- drop down list to decide which range my graph will plot
- Catia V5 Dynamic Hidden Line Removal With Macro Please Help Me
- Convert macro to a function but cannot concatenate inputs using std::stringstream
- Common Lisp: How to use a macro within a macro?
- How to remove the "*" in c++ macro args?
- Caused by : java. awt. HeadlessException
- When I click "enable macros" on my PowerPoint presentation, I get an error saying controls can't be activated. They're not registered on this computer
- SAS Macro Variables
- Generate unique type parameter in procedural derive macro
- unexpected interaction between macroexpand-1 and macrolet
- Can C macros be expanded in flex?
- External macro definition in header
- How to undefine and redefine a macro in C++?
- How to check if a macro argument is an integer literal in C
- How come clang and gcc don't produce a cast warning for this openssl macro, but do otherwise?
Related Questions in PIXEL
- dynamic artistic pixalation of any photo using .net window forms
- Failed assertion: line 3379 pos 12: '!debugNeedsPaint': is not true. I get an error?
- OpenCV & Python - How to convert pixel to millimeters (get object coordinates from arbitrary origin)
- Crop the polygon image with red border
- SDL2 1-bit surface, assign one of two colors in palette to a pixel
- Having issue with dirty flash
- Plotting points in a pixel grid on Julia
- How to directly access video memory of a bitmap in Allegro 5 (for Pascal)
- pixel identification of corners in an image( checkboard)
- How do I use DenseNet121 in MONAI?
- Interpolate missing transparent pixels in an image
- Setting Up Facebook Advanced Matching Manually?
- Fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable
- HTML input type="file" not working to pull up camera for Pixel / android 14 combination
- How to make particles move in spirals?
Related Questions in RESOLUTION
- Android: How to scale a bitmap to fit the screen size using canvas?
- Dynamic Resolution Fix to NuxtJS Download Page
- Can uvc-gadget can go up to 4K on a Rasperry Pi 4B?
- How can I fix @media max-width issue in html and CSS?
- Problem with Excel Userform resolution - Text and image enlargement
- How Can I Increase The Resolution Of My Icon In My GUI Window?
- Meaning of PPI (Pixel Per Inch)
- Create gif from tiff images and preserve resolution using PIL
- What is difference between screen size and pixel size?
- How can I adjust aspect ratio on Mi TV Box 2 when projecting content from the side of the room?
- How to stop a numerical resolution of a differential equation with a certain condition
- Is there a possibility to render parts of the screen at lower resolution?
- Godot physics resizing my sprites at runtime
- How to change window size at runtime using Rust and SDL2?
- Formula for converting XY pixel coordinate in 1920x1080 to 1366x768
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
To convert coordinates from one resolution to another, you can use a simple scaling factor. The scaling factor is the ratio of the new resolution to the old resolution. In your case, you want to convert from 1920x1080 to 1366x768.
Here's how you can calculate the scaling factors for both X and Y coordinates:
Scaling Factor X = New Resolution Width × Old Resolution Width
Scaling Factor Y = New Resolution Height × Old Resolution Height
For your case:
Scaling Factor X = 1366 × 1920 ≈ 0.711
Scaling Factor Y = 768 × 1080 ≈ 0.711
Now, you can use these scaling factors to convert your coordinates. Given your original coordinates (x=1621, y=71):
New X = Scaling Factor X × Old X
New Y = Scaling Factor Y × Old Y
Plug in the values:
New X = 0.711×1621 ≈ 1151
New Y = 0.711 × 71 ≈ 50
So, the converted coordinates for a 1366x768 resolution would be approximately x=1151 and y=50. These are the coordinates you can use for your macro setup in the 1366x768 resolution.9mo