Inserting Images on the Custom UI Editor - image

I'm using the custom UI editor to upload images to a custom ribbon tab. I need the images to look like this:
but currently they are looking like this:
These images are directly from Microsoft shapes. I tried saving them the shapes directly but they were really messy. There must be a way to get the shapes perfect as per the first image - I'm just not sure how.
Any help would be appreciated.

Your images need to be saved in exactly 16x16 pixel size. Anything else, and they will be scaled to fit a 16x16 area, and thus have fuzzy lines.
Your top image (the rectangle) measures 16 pixels wide by 10 pixels tall. If that is the extent of that image, then when you import it, it will get stretched. You need to also include the white (or empty) space around the image (in this case, above and below) when you create the image.
The example above shows the exact same 16x10 px rectangle, in two different formats. The top image included the white space above and below the rectangle and was saved as a 16x16 px image. The bottom image only had the 16x10 px rectangle and was saved as a 16x10 px image, so it was stretched by the UI editor to fit the 16x16 available space.

Related

How to edit an image in Gimp when the target display has different horoiztonal and vertical resolution?

I want to make a wallpaper for this desktop, which has a resolution of 1024 x 384
When I create an image of this dimension in GIMP, it looks like it's half the height by comparison:
It's difficult to create art at a different ratio to the target. How can I handle this in GIMP? (I'm told that in photoshop there is a menu option for this situation, so they look the same but still have the same dimensions but I don't know what it's called.)
Use Image ➤ Print size you can set a different vertical and horizontal resolution for the image (click the chain link to decouple them). You typically want an Y resolution which is half the X one, and best use a resolution which is close to your actual display, possibly 100PPI for X and 50PPI for Y).
Tell Gimp you want it to work using the print size: un-tick View ➤ Dot for dot
Remember that Gimp still works with pixels, if you copy/paste a square from another image, it will be stretched vertically. Likewise a 1:1 aspect ration in the Rectangle and Ellipse selection tools will yield a vertically stretched selection.
On the other hand if you create text with the text tool, it will look normal in "Print size" view, and stretched horizontally in "Dot for Dot" view.

Oracle Reports Rounded Corner Image

I have an image in my report. I want to use rounded corner image format. (Because now my frame is square so corners appear black) How can I use that? ( My details shown in the image. )
You can't, as far as I can tell. Images are rectangular.
What you could do is to edit the image itself - create a white rectangle and paste current image onto it so that currently black corners turn into white. Then, when you insert such an image, it'll look OK in the report.

Matlab GUIDE blurs image?

my plan is implementing an image in a Matlab GUIDE figure. Somehow the output is always blurred (see screenshot). On the left you can see the image in Photoshop on the right in Matlab - notice how the font and other parts become blurred.
I experimented with JPEG and PNG file formats (no compression), I also tried various pixel sizes(resolutions smaller, same and bigger as the actual position of the image) and DPI(values between 30-300) settings, because I expected some scaling issue. Somehow I am stuck - Looking forward to your input!
Thank you,
Florian
Screenshot of the issue: http://s1.bild.me/bilder/260513/6875414Screen_Shot_2014-06-29_at_23.19.34.png
Most probably the reason for the blur is interpolation.
If the axis size you allocated for the image is different from the size of the image MATLAB will resize the image to occupy the whole area.
In order to prevent any interpolation you must set the axis dimension to be the image dimension.

Image map re-sizing

I have been looking to dynamically scale a image map with coordinates to a div, so when re-sizing a window occurs the map and all coordinates are scaled accordingly.
any suggestions on how to do this?
i think this may work
http://blog.outsharked.com/p/image-map-resizer.html
but with the alternate option of :enter a bounding area and the map will be clipped to within that area.
my question then is how do i establish a bounding area, will it scale dynamically to that whole area?
This jQuery plugin works great for scaling and rescaling image maps on the fly. You can call this once, and it will take care of all image maps on the page. It will even rescale an image map if something happens that changes an image's dimensions.
https://github.com/stowball/jQuery-rwdImageMaps.
If you weren't just using the div to solve the image map scaling problem, you could put a blank image (a completely transparent .gif or .png) in your div with the image map applied to it and set its width and height to 100%.

Cocoa Resolution Independent Button Graphic

I'm trying to create a graphic in Sketch (a vector-based graphic design application). I export to PDF and this is what my original graphic looks like:
But when I set it as the image of an NSButton, it gets drawn like this:
Why does this occur? The right and bottom edges in particular are altered a lot. I'm not sure if this is a Cocoa drawing issue or an issue with my original graphic.
The problem is with (mis)alignment with the pixel grid and anti-aliasing. It looks like you've scaled the image so that the borders on the left, right, and bottom are roughly one pixel in thickness. However, the right and bottom borders are straddling the boundary between pixels. The result is that they contribute half their "darkness" to the pixel on one side of the boundary and the other half to the pixel on the other side of the boundary.
You should tweak either the proportions of the image or the size at which you're drawing it to avoid that particular alignment. It looks as though it's being rendered as roughly 10.5 pixels wide. You want it to be either 10 pixels or 11 pixels wide, so the right edge corresponds more closely to a pixel column.

Resources