Image wont display in xamarin - xamarin.forms

I am not able to display the image on my Xamarin UWP app
I have an Image in Assets folder:
<Image x:Name="myBookImage1" Source="/Assets/Agile Coaching.jpeg"></Image>

Is there any specific reason you want the image in the Assets folder?
To use then 'normally' you should put them in the root and set the build action to Content. You are then able to simply do this: <Image x:Name="myBookImage1" Source="Agile Coaching.jpeg"></Image>
Although I would try to prevent spaces in your filenames.
Also see: https://learn.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/images?tabs=vswin#local-images

Related

ASP.NET Image not showing as Resource

I have an image (Logo.png) that I'm using as a resource. It's properties are Build Action-None. For some reason it is not showing when I host it. It works when I run it locally. I read some articles about adding it to an Images folder but I can't imagine that it would be an issue where it's stored.
<img src="Resources/Logo.png" />
I set the Build Action to 'Content'. Image now displays.

Can't set png image through css content property in Symfony project

My png image is located in src/AppBundle/Resources/public/img
I am trying to set png image through css content property:
content: url(../../public/assets/img/optional-checked.png);
But I am getting
GET http://127.0.0.1:8080/public/assets/img/optional-checked.png 404 (Not Found)
How can I set png image through CSS content property in Symfony project?
First suggestion, That's because you need to respect the hierarchy from where you call your CSS not your script.
Another suggestion would be not to use public folder to upload your assets, instead of this, use web folder (in the root), because if you do like I'm saying then the twig views can use properly asset keyword right.
And the last tip, is that you are trying to read your image from public/assets/img/optional-checked.png when you said that your image is really located in public/img.
Hope this helps.

Linking BootsFaces BrandImg

I'm new to JSF and can't figure out how to add the link for my image in my Navbar for Bootsfaces.
<b:container>
<b:navBar brandImg="WHAT_DO_I_PUT_HERE?"
id="navbar-main"
inverse="false"
sticky="true"
I've looked everywhere to try and figure out how to link the image inside of BrandImg and there isn't any information that I can find. I have my logo.png file stored in my resources -> images folder.
The brandImg is simply the URL of the image to display. It may be relative or absolute.
Currently, there's no support for images stored in the resources folder. Of course, you can always use an URL like "#{request.contextPath}/resources/images/logo.png".

Background image path during web based development

I'm Playing around with a cloud based front end developer called Jetstrap and Divshot. A bit confused as to how I'm suppose to code the PATH for css "background image" when using a web based software like this. Where do I store the image and how do I call it? I would like to preview the background image as I develop before export.
Since I cannot find any upload function on both site, I guess you can only assign an image that they can access that image via network.
You can do it as follows:
Click on an element.
Assign that element a class.
Click the 'Edit CSS' or 'CSS/HTML' at right-bottom.
Write the css rule for the class assigned at Step 2.
Screen Shots:
At the moment Divshot only supports external images. We plan to offer image uploading in the near future. I recommend using the Public folder or a shareable link on Dropbox to host your website assets for now. Copy the public link for the background image and use it as your background image path in the CSS editor:

how to images store localy from xml using flex 3?

I have one xml link. that link have collections of images(apx 1000 images).
when i flex applications start at the time load all images in locally. then when i need that images then use it.
How i do this... give me some links and logic.
Using flex 3.
Thanks advance.
senthil.
Load the .xml form server or so.
Parse the .xml and create a Map where you store all the image URLs
Place an Image Component on your UI and set the "source" property to the value of the image URL
Flash Plugin will load the image from the URL and will show the image when done.
If you are facing a "SandboxVaiolationException" (or something like that) you need to tell your server to let the request go.
If you want to change the "source" Property of the Image at runtime, just set it after a click oder an other Event. (is no problem)

Resources