How to extract on-screen area on XD of an image - adobe-xd

I just received the XD file from the designer, now am trying to extract the nav area image from the canvas but image is too spread out from the canvas how it can be cropped to the area of the nav.

Use Adobe Photoshop To Resize them to Fit Original image
or
if you want part of image you can use one of image magnify plugins first
they will fit image to canvas
then use export
Also you can use Web Export Plugins

Related

nothing happens when I attempt to textout to a transparent image

I am using Lazarus.
I have put 2 images on a form and synchronized their positions and sizes.
I can textout to both images, and after I made the ontop image transparent I can see the combined content of both images.
I can add further text to the bottom image and see it, but I can't see text I try to add to the transparent image.
I used the following code to make the top image transparent
image2.picture.Bitmap.TransparentColor:=clWhite;
image2.transparent:=true;
I guess I need to play with the image bitmap, but I can't find a solution that is not using other software.
Can someone help me with this please?

need to add text on overlay image in fabric js

i have added overlay image in fabric js . But need to add text on this overlay
image in canvas. it is made in fabric.js. how to do that?
I guess you are trying to bring text layer on top of image layer. Like z- index in css.
You need to set sendtoBack for image. Then text layer will be in front.
canvas.sendToBack(img);

Prevent resizing of images in ImpressPages 4.x

Whenever I add an image using the image widget in ImpressPages 4.2.5, the image is resized to the actual width of the parent container. However, as I use a responsive design, I need the image in full resolution. Otherwise, the images will look blurry on high dpi screens (e.g. Smartphones or Retina screens).
Is there a way to prevent the image widget from resizing the images?
Try to increase the image size in theme options (theme.json).
Another option is to create a new skin for that widget to output original image and not resized one. Here's an article about skins - http://www.impresspages.org/docs/widgets#skin

couldn't find a way to load a 960x624 image on j2me netbeans emulator

How to show a full 960x624 image using j2me canvas?
I wouldn't mind to scroll but I don't want it resized.
{image = Image.createImage("/earth.png");}
{g.drawImage(image, width, height, Graphics.BOTTOM | Graphics.RIGHT);}
doesn't serve the purpose. I want to know if I have any option to get both the horizontal and vertical scroll bars without actually creating them to view the whole image?
The image size should be same as I don't want the TEXT on the image become unreadable.

Replaceing color on a image realtime

First of all I will explain my situation so you can know my problem a little better. I'm making a HTML5 app. I have a canvas, and using a color picker you can change the color of the canvas. Now i have a picture which I want to put on the canvas but that pictures color needs to be changed using a color picker. So i need to replace, lets say, black color on that picture and put it on the canvas so it dosnt screw up the background.
So that will look like this:
1st color picker- changes the color of the canvas
2nd color picker - replaces the black color on the image with the one in the color picker and puts it on the canvas
Now my problem is how to replace the color on the image without reloading the page.
My only condition is no using silverlight, flash, java or any other similar tehnology that need 3rd party software to be installed on the device.
Thanks in advance.
If you dont understand my query fully, feel free to ask.
My approach with a JS only solution could be:
Loading the image inside a canvas element. Look at the MDC canvas tutorial
Trigger the user click on the canvas and get the pixel color (see links below to know how to get the color of a pixel) and look at this answer to get the mouse position
Substitute all the colors in the canvas with the one the user pick. For some examples about pixel manipulation:
Pushing pixel with canvas at Mozilla Hacks
http://beej.us/blog/2010/02/html5s-canvas-part-ii-pixel-manipulation/
This JS at mezzoblue apply heavy filter to an image
After some canvas experiment I notice that mostly in all the browser the pixel manipulation with canvas could be very slow also with small images. So another experiment to do could be to get the pixel color and then:
pass the color information to a PHP (or another server side script) with an AJAX call
do the color manipulation with an image library like GD or imagemagik
return back your image with the Ajax response
reload your canvas with the modified version of the image

Resources