{"id":13578,"date":"2022-10-04T13:57:42","date_gmt":"2022-10-04T08:27:42","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/"},"modified":"2022-10-04T13:57:42","modified_gmt":"2022-10-04T08:27:42","slug":"solved-make-image-point-toward-specific-location-in-java","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/","title":{"rendered":"[Solved] make image point toward specific location in java"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-50987225\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"50987225\" data-parentid=\"50986670\" data-score=\"2\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Okay, so two things jump out at me&#8230;<\/p>\n<ol>\n<li>If you take a <code>Point<\/code> from outside the context of the label, you will have to translate the point into the components coordinate context<\/li>\n<li>The <code>calculateAngle<\/code> seems wrong<\/li>\n<\/ol>\n<p>So starting with&#8230;<\/p>\n<pre><code>private void calculateAngle(Point target) {\n  \/\/ calculate the angle from the center of the image\n  float deltaY = target.y - (imageLocation.y + bi.getHeight() \/ 2);\n  float deltaX = target.x - (imageLocation.x + bi.getWidth() \/ 2);\n  angle = (float) Math.atan2(deltaY, deltaX);\n  if (angle &lt; 0) {\n     angle += (Math.PI * 2);\n  }\n}\n<\/code><\/pre>\n<p><code>angle = (float) Math.atan2(deltaY, deltaX);<\/code> should be <code>angle = (float) Math.atan2(deltaX, deltaY);<\/code> (swap the deltas)<\/p>\n<p>You will find that you need to adjust the result by 180 degrees in order to get the image to point in the right direction<\/p>\n<pre><code>angle = Math.toRadians(Math.toDegrees(angle) + 180.0);\n<\/code><\/pre>\n<p>Okay, I&#8217;m an idiot, but it works \ud83d\ude1b<\/p>\n<p>I&#8217;d also make use of a <code>AffineTransform<\/code> to translate and rotate the image &#8211; personally, I find it easier to deal with.<\/p>\n<p>In the example, I&#8217;ve cheated a little.  I set the translation of the <code>AffineTransform<\/code> to the centre of the component, I then rotate the context around the new origin point (<code>0x0<\/code>).  I then paint the image offset by half it&#8217;s height\/width, thus making it appear as the if the image is been rotated about it&#8217;s centre &#8211; It&#8217;s late, I&#8217;m tired, it works \ud83d\ude1b<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\" alt=\"Point at me\"><\/a><\/p>\n<pre><code>import java.awt.Color;\nimport java.awt.Dimension;\nimport java.awt.EventQueue;\nimport java.awt.Graphics;\nimport java.awt.Graphics2D;\nimport java.awt.GridBagLayout;\nimport java.awt.Point;\nimport java.awt.event.MouseAdapter;\nimport java.awt.event.MouseEvent;\nimport java.awt.geom.AffineTransform;\nimport java.awt.image.BufferedImage;\nimport java.io.File;\nimport javax.swing.JComponent;\nimport javax.swing.JFrame;\nimport javax.swing.JLabel;\nimport javax.swing.JPanel;\nimport javax.swing.SwingUtilities;\nimport javax.swing.UIManager;\nimport javax.swing.UnsupportedLookAndFeelException;\nimport javax.swing.border.LineBorder;\n\npublic class Test {\n\n    public static void main(String[] args) {\n        new Test();\n    }\n\n    public Test() {\n        EventQueue.invokeLater(new Runnable() {\n            @Override\n            public void run() {\n                try {\n                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n                } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n                    ex.printStackTrace();\n                }\n\n                JFrame frame = new JFrame(\"Testing\");\n                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n                frame.add(new TestPane());\n                frame.pack();\n                frame.setLocationRelativeTo(null);\n                frame.setVisible(true);\n            }\n        });\n    }\n\n    public class TestPane extends JPanel {\n\n        private ImageLabel label;\n\n        public TestPane() {\n            setLayout(new GridBagLayout());\n            label = new ImageLabel();\n            add(label);\n\n            addMouseMotionListener(new MouseAdapter() {\n                @Override\n                public void mouseMoved(MouseEvent e) {\n                    label.pointImageToPoint(e.getPoint(), TestPane.this);\n                }\n            });\n        }\n\n        @Override\n        public Dimension getPreferredSize() {\n            return new Dimension(200, 200);\n        }\n\n    }\n\n    public final class ImageLabel extends JLabel {\n\n        private double angle = 0;\n        private Point imageLocation = new Point();\n        private File imageFile = null;\n        private Dimension imageSize = new Dimension(50, 50);\n        private BufferedImage bi;\n\n        public ImageLabel() {\n            setBorder(new LineBorder(Color.BLUE));\n            bi = new BufferedImage(50, 50, BufferedImage.TYPE_INT_ARGB);\n            Graphics2D g2d = bi.createGraphics();\n            g2d.setColor(Color.RED);\n            g2d.drawLine(25, 0, 25, 50);\n            g2d.drawLine(25, 0, 0, 12);\n            g2d.drawLine(25, 0, 50, 12);\n            g2d.dispose();\n        }\n\n        @Override\n        public Dimension getPreferredSize() {\n            return new Dimension(bi.getWidth(), bi.getHeight());\n        }\n\n        protected Point centerPoint() {\n            return new Point(getWidth() \/ 2, getHeight() \/ 2);\n        }\n\n        @Override\n        public void paintComponent(Graphics g) {\n            super.paintComponent(g);\n            if (bi == null) {\n                return;\n            }\n            Graphics2D g2d = (Graphics2D) g.create();\n            AffineTransform at = g2d.getTransform();\n            Point center = centerPoint();\n            at.translate(center.x, center.y);\n            at.rotate(angle, 0, 0);\n            g2d.setTransform(at);\n            g2d.drawImage(bi, -bi.getWidth() \/ 2, -bi.getHeight() \/ 2, this);\n            g2d.dispose();\n        }\n\n        public void rotateImage(float angle) { \/\/ rotate the image to specific angle\n            this.angle = (float) Math.toRadians(angle);\n            repaint();\n        }\n\n        public void pointImageToPoint(Point target, JComponent fromContext) {\n            calculateAngle(target, fromContext);\n            repaint();\n        }\n\n        private void calculateAngle(Point target, JComponent fromContext) {\n            \/\/ calculate the angle from the center of the image\n            target = SwingUtilities.convertPoint(fromContext, target, this);\n            Point center = centerPoint();\n            float deltaY = target.y - center.y;\n            float deltaX = target.x - center.x;\n            angle = (float) -Math.atan2(deltaX, deltaY);\n            angle = Math.toRadians(Math.toDegrees(angle) + 180.0);\n            repaint();\n        }\n    }\n}\n<\/code><\/pre>\n<p>I just want to add that using a <code>JLabel<\/code> for this purpose is overkill, a simple <code>JPanel<\/code> or <code>JComponent<\/code> would do the same job and carry a lot less overhead with it, just saying<\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved make image point toward specific location in java <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Okay, so two things jump out at me&#8230; If you take a Point from outside the context of the label, you will have to translate the point into the components coordinate context The calculateAngle seems wrong So starting with&#8230; private void calculateAngle(Point target) { \/\/ calculate the angle from the center of the image &#8230; <a title=\"[Solved] make image point toward specific location in java\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\" aria-label=\"More on [Solved] make image point toward specific location in java\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[3621,323,2552],"class_list":["post-13578","post","type-post","status-publish","format-standard","hentry","category-solved","tag-graphics2d","tag-java","tag-rotation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] make image point toward specific location in java - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] make image point toward specific location in java - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Okay, so two things jump out at me&#8230; If you take a Point from outside the context of the label, you will have to translate the point into the components coordinate context The calculateAngle seems wrong So starting with&#8230; private void calculateAngle(Point target) { \/\/ calculate the angle from the center of the image ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-04T08:27:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] make image point toward specific location in java\",\"datePublished\":\"2022-10-04T08:27:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\"},\"wordCount\":216,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\",\"keywords\":[\"graphics2d\",\"java\",\"rotation\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\",\"name\":\"[Solved] make image point toward specific location in java - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\",\"datePublished\":\"2022-10-04T08:27:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] make image point toward specific location in java\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] make image point toward specific location in java - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] make image point toward specific location in java - JassWeb","og_description":"[ad_1] Okay, so two things jump out at me&#8230; If you take a Point from outside the context of the label, you will have to translate the point into the components coordinate context The calculateAngle seems wrong So starting with&#8230; private void calculateAngle(Point target) { \/\/ calculate the angle from the center of the image ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/","og_site_name":"JassWeb","article_published_time":"2022-10-04T08:27:42+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] make image point toward specific location in java","datePublished":"2022-10-04T08:27:42+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/"},"wordCount":216,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif","keywords":["graphics2d","java","rotation"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/","url":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/","name":"[Solved] make image point toward specific location in java - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif","datePublished":"2022-10-04T08:27:42+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/10\/Solved-make-image-point-toward-specific-location-in-java.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-make-image-point-toward-specific-location-in-java\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] make image point toward specific location in java"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775193939","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=13578"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13578\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=13578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=13578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=13578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}