the string image
I add a shadow to my image. My topic is several feet from the wall, so the angle of shadow cast will change abruptly where the floor meets the wall. How can I warp this shadow to the desired angle effect? So far, all I see with the warp tool is a curved effect - no way to bend an image on a flat surface. In short, I need this image to bend sharply upward, not the curve, where the floor meets the wall.
First, Bill, your layers must be configured in this way:
Was: should understand that green background.
B. is created when you apply a drop shadow C and then apply the following:
In CS4, it reads create layers instead of creating layer, but it is there. Guaranteed.
C. the top layer is your silhouette
After your first tilt to tilt and drag the shadow, OK it. So make this choice of shadow (not a shadow of all) and the vertical left tilt.
Notice that the selection extends along the horizon line. As you can see in the case of this image, the person is not very far from the 'wall' if the articulation of the shadow will be not significant. If you want a more dramatic shadow joint, it must be placed further away from the wall and one more steep first slope.
Tags: Photoshop
Similar Questions
-
Hello
I need to get the Contact image converted to string Base64 using BB 10 Webworks (blackberry.pim.contacts) I get only the contact.photos [0] .smallFilePath which returns the path to the phonebook file.
Now, I want to get the image of this path and convert it to a Base64 string.
Here's the javascript code :
var img = document.createElement ('Image');
var canvas = document.createElement ('Canvas');function getBase64Image (p) {}
img.setAttribute ("src", p);Img.width = Canvas.Width;
Canvas.height = img.height;
CTX var = canvas.getContext ("2d");
ctx.drawImage (img, 0, 0);
Return canvas.toDataURL("image/jpg");}
This means bad Base64 string of image for the first time. When I convert this string to the image it displays white screen. But returns a string in the Mithraeum and after conversion, display a correct image.
I use Blackberry Z10 (OS 10) for the test.
I think that the canvas is not drawing image properly for the first time.
I have searched and tried many things, but not got success. What will be the solution.
Thanks in advance.
My guess is that the image did not load the source completely still. Setting the src / image loading is an asynchronous event, which means that your code will continue to the next line regardless of whether the image has loaded yet or not.
After calling setAttribute instead of execute the code of the Web, you will probably need define an event on img for the load event listener. Once the image is loaded, you can then use the img with canvas variable to retrieve its data.
Note that getBase64 will return immediately, so you may need to develop some sort of mechanism to wait before returning, or the asynchronous approach and integrate reminders for the success trigger the next piece of code.
-
46YL863: change TV channels - delay before the new image appears
Hope someone can advise me please on an "issue" that's appeared recently with my 46YL863 TV.
I say 'problem' rather than problem in case it's something to do with my settings, which is the cause.When I change channels I notice that there is a delay of several seconds of the current image to the new. I narrowed down it to this happens only when you switch from a HD channel to a one SD card, or from a SD card on a HD.
In these circumstances the screen will first black, then blue and after a couple more seconds the new image of the string will appear.
Switch between HD or SD channels and the new image appears almost immediately.This happened before the last two days, so either a fault has developed or I changed a setting in some way.
I tried other plugs of HDMI input and the situation is the same.
Any suggestions please?Thank you.
> I tried other plugs of HDMI input and the situation is the same.
This means that you are using an external decoder which receives signals from TV? -
Hi all
I intend to measure the length of the string and the length of the Arc in a gray-scale image. Please advise.
You need to find to the first circle or outer circle?
Part of Mathematics:
The length of the rope of calculation, to find the RADIUS and the angle under which is seen in the center of the rope or perpendicular to the distance between the string and the center of the circle: once you have these settings, you can calculate the length of the rope using formulas:
Source: http://www.mathopenref.com/chord.html
Similarly, you can get for the length of the Arc: http://www.mathopenref.com/arclength.html
Part of image processing:
-I think that you can get the radius of the internal or external circle based on your requirement, using IMAQ detect forms.
https://zone.NI.com/reference/en-XX/help/370281M-01/imaqvision/imaq_detect_shapes/
-
Hello
I use the IMAQ flatten image for the vi string to flatten an acquired image and write it to the binary file. Later, when I read the binary file and try with it chain unflatten, I get an error message:
74 error to Unflatten channel into frames get & Process.vi
Possible reasons:
LabVIEW: Memory data structure or corrupted.
What I am doing wrong? I've attached screenshots to flatten and unflatten operations.
Thank you
Soheyl
I actually found the problem. For future reference: I added a flatten the IMAQ Image to a string on the diagram to unflatten and wired his output to the terminal 'data type' binary file reading. May not be a more elegant solution, but it works.
-
How the string output to a common indicator?
Hello
I have a sequence of battery with 10 picture sets, there is a wait to delay of 2 seconds between each image. I have a common indicator of channel set and I want to output a string to this indicator in the first framework before the codes between frame 2 frame 9 execution... and I would like another string to the same indicator on the latest image to indicate all the completed exit code. But I find that there is no way to share the flag by two constant string of different chassis. Any idea? Thank you.
Use the variable value or local property of the node of this common indicator in all sequences
-
I want to download an image from the server. After that, I have to save this image in assets folder.
I managed to download the image to the server, by referring to this example: https://github.com/RileyGB/BlackBerry10-Samples/tree/master/WebImageViewSample
Now my problem is:
I want to save this image to the assets folder
In the example above that the answer of the QNetworkRequest, I got the Images.Now instead of display the image directly I want to record in the current folder. How can I do that. Please help me
Here is the code where I'm trying to access the server image
#include "WebImageView.h" #include
#include #include #include using namespace bb::cascades; QNetworkAccessManager * WebImageView::mNetManager = new QNetworkAccessManager(); QNetworkDiskCache * WebImageView::mNetworkDiskCache = new QNetworkDiskCache(); WebImageView::WebImageView() { // Initialize network cache mNetworkDiskCache->setCacheDirectory(QDesktopServices::storageLocation(QDesktopServices::CacheLocation)); // Set cache in manager mNetManager->setCache(mNetworkDiskCache); } const QUrl& WebImageView::url() const { return mUrl; } void WebImageView::setUrl(const QUrl& url) { // Variables mUrl = url; mLoading = 0; // Reset the image resetImage(); // Create request QNetworkRequest request; request.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::PreferCache); request.setUrl(url); // Create reply QNetworkReply * reply = mNetManager->get(request); QObject::connect(reply,SIGNAL(finished()), this, SLOT(imageLoaded())); QObject::connect(reply,SIGNAL(downloadProgress(qint64, qint64)), this, SLOT(dowloadProgressed(qint64,qint64))); // // Note: // If you see Function "downloadProgress ( qint64 , qint64 ) is not defined" // Simply close this file, delete the error and compile the project // //emit urlChanged(); } double WebImageView::loading() const { return mLoading; } void WebImageView::imageLoaded() { // Get reply QNetworkReply * reply = qobject_cast (sender()); //here Iam getting the images as the reply.Now instead of loading them directly I want to save this image // Process reply QByteArray imageData = reply->readAll(); // Set image from data setImage( Image(imageData) ); // Memory management reply->deleteLater(); } void WebImageView::dowloadProgressed(qint64 bytes,qint64 total) { mLoading = double(bytes)/double(total); emit loadingChanged(); } Hi SumiSadiq,
It's my code. I hope that helps you solve your problem. Let me know.
#include
// This saves the image contained in the input "reply". It saves it in a different // folder depending on the type of the request made to get the image.// Returns true if the image was successfully saved. False otherwise. bool NetworkManager::saveImage(QNetworkReply* reply) { QString filePathWithName = "data/img/"; QString imageName; bool canSaveImage; bool canSaveInImgFolder; bool successfullySaved = false; // Creating the image folder (if no created yet) canSaveInImgFolder = createFolder("data/img/"); canSaveImage = canSaveInImgFolder; // Getting the (future) image name from a reply property set before imageName = getImageNameFromURL(reply->url().toString(), reply->property("askerManager").toInt()); // Deciding where to save the image if(reply->property("type") == DESTAQUE_IMAGE_REQUEST) { // Destaques Images bool canSaveInDestaquesFolder = createFolder("data/img/destaques"); canSaveImage = canSaveInDestaquesFolder; filePathWithName += "destaques/" + imageName; } else if(reply->property("type") == FILMES_IMAGE_REQUEST) { // Filmes Images bool canSaveInDestaquesFolder = createFolder("data/img/filmes"); canSaveImage = canSaveInDestaquesFolder; filePathWithName += "filmes/" + reply->property("id").toString() + ".jpg"; } // Saving the image on the device if(canSaveImage) successfullySaved = openAndSaveFile(filePathWithName, reply); // If the image was succesfully saved, we pass its local address to the originating object. if(successfullySaved) { QNetworkRequest req = reply->request(); QObject* origObj = req.originatingObject(); if(dynamic_cast (origObj)) { ((DataManager*)origObj)->setLocalImage(filePathWithName, reply->property("askerPositionInList").toInt()); } } else { fprintf(stderr, "PROBLEM Failed to save Image: %s\n", filePathWithName.toLocal8Bit().data()); } return successfullySaved; } // Creates a sub-directory by using input "path" (e.g. "data/media/" to create the "media" folder inside the data folder). // Returns true on success. False otherwise. bool NetworkManager::createFolder(QString path) { bool r = true; QDir* dir = new QDir(); // Creating the sub directory (if not created yet) if(!dir->exists(path)) { r = dir->mkdir(path); if(r == false) { fprintf(stderr, "PROBLEM The folder %s could not be created \n", path.toLocal8Bit().data()); } else fprintf(stderr, "Successful creation of folder %s \n", path.toLocal8Bit().data()); } return r; } // This opens/creates a file which path+name is the value of the string "filePathWithName". // Then it fills this file with the response coming from the "reply" input parameter. Finally // it closes the file. bool NetworkManager::openAndSaveFile(QString filePathWithName, QNetworkReply* reply) { bool r = true; QFile *mFile = new QFile(filePathWithName); QNetworkRequest req = reply->request(); // Open the file and print an error if the file cannot be opened if (!mFile->open(QIODevice::WriteOnly)) { r = false; qDebug() << "\n Failed to open file"; fprintf(stderr, "PROBLEM Failed to open file: %s\n", filePathWithName.toLocal8Bit().data()); return r; } // Write to the file using the reply data and close the file mFile->write(reply->readAll()); mFile->flush(); mFile->close(); return r; } -
OutOfMemoryError come when discovers the large image (2048 * 1024) and 89 KB
Hello
Please someone help me solve my problem of "OutOfMemory" coming in my Strøm BB device while I don't want to see the size of the large image. The size of the image that I use is about 89Ko and 2048 x 1024 px.
I could see the image that is 140 kb and 1024 x 768 px, but not for 89 KB and 2048 x 1024 px.
Here is my code to see the picture: -.
public static Bitmap getBitmapFromUrl (String photourl) {}
Bmf bitmap = null;
data Byte [] = null;
try {}
FileConnection fconn = (FileConnection) Connector.open (photourl, Connector.READ_WRITE);
java.io.InputStream entry = fconn.openInputStream ();
ByteArrayOutputStream Baos = new ByteArrayOutputStream();
int j = 0;
While ((j = Input.Read ())! = - 1) {}
Baos.Write (j);
}
data = baos.toByteArray ();
Baos = null;
Input.Close ();
fconn. Close();
entry = null;
fconn = null;
BMF = Bitmap.createBitmapFromBytes(data,0,data.length,1);<-- at="" this="" step="" i="" am="" getting="" the="" outofmemory="">-->data = null;
} catch (Exception e) {}
System.out.println ("Exception getBitmapFromUrl() DeleteIndividualPhoto :"); ")
}
return the bmf;
}Thank you
TEJ
My understanding is that a Bitmap is a full image, uncompressed, and the Blackberry uses 2 bytes per pixel to represent the color, then the image of 2048 * 1024 means about 4 MB of storage. It's not bad, especially since I suspect that you have more than one of them. And of course the follow-up to this question is how you view this image size on the device? Seems to me that this file size is a bit of an overdose. But even if you don't need it, have you considered using the scale parameter of
Bitmap.createBitmapFromBytes
scaling of the image according to a more reasonable size before you create the Bitmap image?
-
Keep the text perpendicular to the base line when you use the string.
Is there a way to keep the text perpendicular to the base line when using the warp function? I'm trying to reproduce a decal with curved text. When I use the string to get the text that is curved like the original, the letters are slightly tilted.
You could try to make each letter on a separate text layer, then use Image > transform > free transform to adapt the letters in place.
A lot more control over the placement of the letter and size that warp text offers.
-
source code in the string form
Hello, I would like to ask, if it is possible to set the entire source code as a string variable.
I need to do a complex search and replace and search dw and replace funcions with regexp does not,
I want to work with the entire source code as variable and use javascript to change something
no idea how to do this?
conrectly I need to convert this:
"< img src="/blabla/blabla/image.jpg?blablablabla "alt ="alttext"class ="image"width ="100"height ="100"/ >
TO:
< component format = "url" name = "component/image.jpg" start ="& lt; img src = & #39; "end ="& #39; ALT = & #34; alttext & #34; class = & #34; image & #34; width = & #39; 100 & #39; height = & #39; 100 & #39; / & gt; "/ >
I don't think it is possible to find and replace and regexp, mainly because the image attributes can have different order. but the use of some functions in javascript is simple.
do you know how to get a source to the string, and then again on the document?
Thank you
Hello st3n,.
Not sure I understand exactly what you're trying to do, but in the Dreamweaver API, dom.source.getText () will be the source of the entire document as a string. You can then manipulate it with the JavaScript code with Regex functions.
Then dom.source.insert () allows you to insert some source code that you want in the document.
You can find more information in the section Help Center, API of Dreamweaver, Code, Code display works.
Xav
MyDreamweaverExtensions.com
-
Dynamic text box to show the current image not workng
Please could someone help me. I wish that my area of dynamic text to display the current image of roots. I triedthis with no luck
frameNumberText_txt.text = currentFrame;
I'm pretty sure that the problem is because the field requires a string value. I'm not sure how to do that heh
Try...
frameNumberText_txt.text = String (this.currentFrame);
This assumes that the textfield object lives on the root timeline. If that's not solve it, and you get an error message, include the error message in your ad.
-
Help make the second image in the slideshow load a button.
Hello world.
Can someone help me with the actionscript code to one of my images in a slideshow (whose images are linked externally through actionscript)
load a button which is accessible only when this specific image is displayed.
for example-image 1 - No button but image 2 has the button, button 3-no image, image 4, no button... and so more.
Here is my script for the slideshow and prev buttons and following
var totalSlides:Number = 6;
var currentImage:Number = 0;
var imagePath:String = "images/ad";
var imageName:String = "announcement";
var imageExt:String = ".jpg";var adImages:MovieClipLoader = new MovieClipLoader();
function loadSlide() {}
adImages.loadClip (imagePath + currentImage + imageExt, "adImages_mc");
}loadSlide();
this.prevSlide_btn.enabled = true;
this.prevSlide_btn._alpha = 100;this.nextSlide_btn.onRelease = function() {}
_root.prevSlide_btn.enabled = true;
_root.prevSlide_btn._alpha = 100;
If (currentImage < (totalSlides - 1)) {}
currentImage ++;
loadSlide();
}If (currentImage == (totalSlides - 1)) {}
_root.nextSlide_btn. Enabled = false;
_root.nextSlide_btn._alpha = 50
}
}this.prevSlide_btn.onRelease = function() {}
_root.nextSlide_btn.enabled = true;
_root.nextSlide_btn._alpha = 100;If (currentImage > 0) {}
-currentImage;
loadSlide();
}If (currentImage == 0) {}
_root.prevSlide_btn. Enabled = false;
_root.prevSlide_btn._alpha = 50;
}
}
Im a beginner but know some actionscript.I really appreciate the help.
Thanx
I guess that the button that you want to display is not indicated for anywhere in the code that show you. What you can do, is make the button visible/invisible in the function loadSlide. This assumes that currentImage = 1 is the second image, change only if it is actually 2.
function loadSlide() {}
adImages.loadClip (imagePath + currentImage + imageExt, "adImages_mc");if(currentImage == 1) {}
certainButton._visible = true;
} else {}
certainButton._visible = false;
}
} -
The full version of the loading images
Hello. I am trying to build a XML Gallery per inch of loading the XML file and then once the thumbs are loaded, when I click on a thumb the corresponding main image must be loaded in a mc imageContainer. I had inches to load using a loop for which makes a loop through an XMLList, but now I can not get the loading the corresponding image thumbs because I get this error message
Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2035: URL not found.
Maybe I messed up my references or something... Here is my code:
var myXML:XML;
var myImages:XMLList;
var xmlLoader:URLLoader;
var thumbArray:Array;
var numberLoaded:uint = 0;
var: padding: uint = 5;
var thumbSize:uint = 100;
var speed: Number = - 5;
var n: Number;
var touchingBar:Boolean = false;
var thumbLoader:Loader;
var mcThumb:MovieClip;
var imageLoader:Loader;
loadXML();
function loadXML (): void
{
xmlLoader = new URLLoader()
xmlLoader.addEventListener (Event.COMPLETE, sortXML);
xmlLoader.load (new URLRequest ("gallery.xml"));
}
function sortXML(event:Event):void
{
xmlLoader.removeEventListener (Event.COMPLETE, sortXML);
myXML = new XML (event.target.data);
myImages = new XMLList (myXML.image);
n = myImages.length ();
loadThumbs();
}
function loadThumbs (): void
{
thumbArray = new Array();
for (var i: uint = 0; i < myImages.length (); i ++)
{
thumbLoader = new Loader();
thumbLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, thumbLoaded);
thumbLoader.load (new URLRequest (myImages [i] .thumb));
thumbLoader.x = (thumbSize + padding) * i;
mcThumb = new MovieClip();
mcThumb.addChild (thumbLoader);
mcThumb.name = String (i);
thumbArray.push (mcThumb);
thumbContainer.addChild (mcThumb);
TweenLite.from (mcThumb,.5, {alpha: 0, facilitated: Cubic.easeInOut});
}
thumbContainer.addEventListener (Event.ENTER_FRAME, movingCode);
thumbContainer.addEventListener (MouseEvent.CLICK, loadMainImage);
}
function thumbLoaded(e:Event):void
{
thumbLoader.contentLoaderInfo.removeEventListener (Event.COMPLETE, thumbLoaded);
numberLoaded ++;
if (numberLoaded == myImages.length ()) {}
for (var i: uint = 0; i < thumbArray.length; i ++) {}
var reflection: Reflect = new Reflect ({mc:thumbArray [i], alpha: 50, ratio: 170, distance: 0, updateTime:0, reflectionDropoff:1});})
}
}
loadFirstImage();
}
function loadFirstImage (): void
{
imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, addFirstImage);
imageLoader.load (new URLRequest(myImages[0].url));
}
function addFirstImage(e:Event):void
{
imageContainer.x = (stage.stageWidth - imageContainer.width) * 0.5;
imageContainer.y = 3;
imageContainer.addChild (e.target.loader);
TweenLite.to (imageContainer,.4, {alpha: 90, ease:Linear.easeIn});})
}
function loadMainImage(e:MouseEvent):void
{
imageContainer.removeChildAt (0);
imageLoader = new Loader();
imageLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, mainImageLoaded);
imageLoader.load (new URLRequest (myImages [e.target.name] .url));
}
function mainImageLoaded(e:Event):void
{
imageContainer.x = (stage.stageWidth - imageContainer.width) * 0.5;
imageContainer.addChild (e.target.loader);
}
is there a better way to load the thumbs so that I can get better references to every inch, as for example loading them in order, then adding the click event listener to the thumb itself rather than the thumbContainer that holds all thumbs?
Thanks in advance!
Please define path before each URLRequest. You must have at least 4 tracks in the code in methods:
URLRequest
loadFirstImage
loadFirstImage
loadThumbs
myImages [e.target.name] .url
e.Target points at thumbContainer
e.Target.Name is the name of the instance of the thumbContainer
-
Is it possible to know the file name of the loaded images?
Hello:
I have a folder containing images named 01_image_name.jpg, 02_image_name.jpg, 03_image_name.jpg,... names that I read with a PHP script. Then I wrap each image loading and wait for all are responsible to view
1. the PHP script reads the names file and returns a string with names separated by a "|" char, then I use the split to store in imagesNames table method and sorting
2. I loop table of imagesNames hollow loading images
3. anytime a new image arrives I push imagesContainer table and check if all the images are loaded to show themThe problem is that there is no guarantee that they arrive in the same order they opposed. So, how I sorts the array imagesContainer of file name, i.e. in the same order that they are imagesNames table?
Thanks in advance
function imgLoaded(par:Event):void {}
trace ("the loaded image comes from this url:" + par.target.url);
...
}
-
How can I display the first image of a built-in clip?
I prepare a presentation for my 10.11.16 retina, with Keynote 6.6.1 MacPro OSX. I want that it contains clips integrated to my films. I chose the simplest theme - plain black. I drag and drop these Quicktime movies or .mov of iTunes to a new black slide in Keynnote.
When I'm in mode Navigator or Light Table etc, what I see is a series of black images - although if I click with the mouse the video will play. How can I see the first frame of the movie, and don't forget that it will start when I move to the slide, so that I can see the order of presentation, or know what's coming?
You see black because it is what is contained in the poster frame, which is the first frame of the video by default.
To change the original image: click the video on the slide to select it, then go to: Inspector > Format > film
either drag the corrector, or enter a number in the box, here I'v entered 4 seconds for the poster so frame the frame of departure:
Maybe you are looking for
-
Apple music without a game?
Is it possible to have music Apple without him for my current iTunes library? I did the test about a year ago and it has messed up all my album art, live albums, etc. It was a nightmare, and still a lot of my album art is completely wrong... Basicall
-
each time from mail, password is required
I installed a mail account to work on mac pro book, it begins to function properly. After logigng in once again, I need to type the password for the e-mail account.
-
Photosmart C5380: After having changed all the cartridges printer still does not
My printer says there is a problem of ink cartridge, ink cartridges seem to be damaged or missing, so I just replaced all. However it did not help that the message still appears. It becomes quite frustrating. What can I do?
-
INSTALLATION OF THE FILES ON IPOD CAUSES MY DVD BURNER TO NOT BE RECOGNIZED
How can after I download music on my ipod that the DVD burner is not working, I fix
-
I lost my start icon in my taskbar. It can not open my programs. How can I return the icon start? Thank you