Questions tagged [imagesource]
The imagesource tag has no usage guidance.
333
questions
0
votes
1
answer
12
views
Strapi image not rendering in Astro framework
I want to use an image in Astro, using strapi. I inserted the (i guess) the correct link according to the api. This is the code for the image, but it simply won’t display an image, and displays an ...
0
votes
2
answers
84
views
C# WPF MVVM Image Source Updating
I am trying to update the image source in xml from the view model but it seems that I cannot do it and I don't understand what I am missing.
So... In the view xml I have a image for which I made a ...
0
votes
1
answer
88
views
Display MAUIIcon in normal Page
I'm developing a .NET MAUI App. It has an MAUIIcon as AppIcon, so far so good.
But how is it possible to display this icon in an normal XAML contentPage?
I tried to use ImageSource.FromFile("...
1
vote
1
answer
307
views
How to get Base64 string from ImageSource?
I'm trying to get a Base64 string from an ImageSource object in C# MAUI .NET 7.0.
I'm using SyncFusion Signature Pad component with ToImageSource();
I can't understand how to use this ImageSource and ...
1
vote
2
answers
113
views
Pass ImageSource to another page as parameter
I tried to pass an ImageSource object to another page via shell navigation.
When I call
await Shell.Current.GoToAsync($"{nameof(FullScreenImagePage)}?",
new ...
0
votes
1
answer
81
views
Update ImageSource return <<Only the original thread that created a view hierarchy can touch its views>> .Net7 Net Maui
i need your help to know where i'm wrong..
I have a ContentPage with a listview populated by TextCell only.
When i tap on an element it will invoke the command OpenPostEvent and it will update an ...
1
vote
0
answers
384
views
PowerShell - Convert System.Drawing.Bitmap to System.Windows.Media.ImageSource
I created a PowerShell form in PSStudio.
I added a custom WPFMessageBox function that I found online to add message boxes for errors and confirmation.
I'd like to add images to these message boxes, ...
0
votes
1
answer
161
views
Xamarin Image Source AppThemeBinding to object properties
I have a custom control in my Xamarin project. It has a binableProperty of type ImageSource
In main view i have a collection view where i want to bind my properties inside ItemTemplate.
My problem is ...
0
votes
1
answer
41
views
I can't change image source in xamarin on xaml.cs
I want to change the Image source in xamarin but I can't see the value I gave to x:name in .cs somehow?
.xaml :
<Image Source="{local:ResourceResimExt ResourceId=OzelKalem.Content.images....
-1
votes
2
answers
1k
views
How to change image src on scroll in reactjs
I want to change the source of image onscroll in reactjs. Like if scrollY is greater than 100 change the image source and if it is greater than 200 change it another source.
i tried to do it but could ...
0
votes
2
answers
297
views
How do I display a resource property image in <Image>?
I'm trying to display an image I have saved as a resource under the properties category.
This property however returns a byte[] which can't be displayed by <Image> since it can't convert it to ...
0
votes
2
answers
84
views
Media Query and Image Swapping
I want the image in my site to completely change when the browser is resized.
I've been using media-queries, but I can't seem to get it right. Any thoughts/tips?
The thing is I have tried the display ...
-1
votes
1
answer
394
views
Returning ImageSource from a Task - is this even possible?
I seem to be going round in circles with this problem i'm having. The old code I was using is as follows:
private ImageSource LoadImg(string url)
{
WebClient MyWebClient = new WebClient();
...
1
vote
0
answers
784
views
How to test the source of image using just jest not enzyme in react if image source is imported?
I have an image tag in react whose source is from my assets folder which is imported. I want to test it and match the source attribute having exactly same value. I have tried using toHaveAtrribute('...
0
votes
0
answers
101
views
getting error while trying to change image source wpf C#
I have a DataGrid in my wpf window, and it's got a ContextMenu with items Update and Delete
When Update is Clicked the selected item's Name, UserName etc... is shown in TextBoxes of the window, so ...
0
votes
0
answers
41
views
Should I store `ImageSource` or instantiate it on demand?
I'm designing a mechanism similar to Microsoft SDK's CrispImage. The idea is to render and cache images from SVGs basing on requested resolution and current DPI. I also need to be able to save and ...
0
votes
0
answers
311
views
Xamarin.Forms Imagesource issue
I have a view with an image: <Image Source="{Binding MainUrl}"/>
Image binding value : My image source on loading from database
the value of MainUrl variable is stored in an sqlite ...
0
votes
2
answers
209
views
imageSource property is unavailable on Squish IDE?
I would like to know if an image is green or red in a button I test with Squish.
My problem is that the imageSource property of my Qt object button is blank in Squish IDE so I don't know if it ...
0
votes
1
answer
284
views
Converting ImageSource to String on C# WPF
ESRI Symbology library is slow and sometimes take longer time than expected.
I wish to serialize a selected range of ImageSource to a cache, string in the memory or file.
I have searched the web but ...
0
votes
1
answer
62
views
How to use ImageSource in xaml
I want to give the Button an Image like this:
<Button Name="Close" Grid.Column="1" HorizontalAlignment="Left" Margin="513,0,0,0" VerticalAlignment="...
2
votes
0
answers
170
views
Mapbox RasterLayout how to line up ImageSources?
I'm currently trying to add offline maps to Mapbox as an ImageSource on a RasterLayer.
Each tile consists of an ImageSource that is set from a bitmap image, within a specific LatLngBounds "4 ...
0
votes
2
answers
1k
views
HTML how to get canvas resource file?
The picture on the HTML page is represented as a canvas, but I have problems getting the source image name of this canvas, using javascript.
Page: https://www.futbin.com/22/squad-builder
I found this ...
0
votes
1
answer
527
views
How to pull image from web using its source
I've just started learning how to code starting with HTML. I'm using Codepen and when I add any image it refuses to populate. I can see on the page where it shows my alt text and the image load fail ...
0
votes
2
answers
115
views
Uploading an image on a button click in XMAL
Why this does not load the image?
private void OnButtonClickedLoadImage(object sender, EventArgs e)
{
ImageSource imgSrc =
ImageSource.FromFile("C:\\MyApp\\MyPicture.png");
...
1
vote
2
answers
56
views
Use JS to change the source of an image element after loading the image?
Is it possible to use JS (specifically with the p5 library) to change the source of an image element? I was trying to make a very low-level slideshow on my webpage and I thought I could just do ...
0
votes
1
answer
591
views
Load Image from URL with a Referrer Header
I need to download static images from my CDN and display them in my Xamarin.Forms view. I'm new to Xamarin specifically and I'm having a hard time figuring out how to load an image from a byte array ...
1
vote
3
answers
163
views
Image source not finding the image [duplicate]
I am trying to add a image in my React component but for some reason the alternative text is always displayed
This is how I am reaching for the picture in the component Navbar
<img src="../...
1
vote
1
answer
101
views
WPF: ImageSource relative to executable location not project location
I want to load image from an directory under my executable location.
<ImageBrush x:Key="WindowBackground" ImageSource="./backgrounds/Zenitsu.png" Stretch="UniformToFill&...
0
votes
0
answers
70
views
How can i stop my Image.Source from accessing Files? [duplicate]
I have a little Game that works with Pixels. I tried to simplify this error but I can't, so it would be great if someone knew a solution.
I have a Loadlevel function that deletes some state files and ...
0
votes
2
answers
1k
views
Xamarin.Forms: convert an ImageSource an Image Byte array
I work on a Xamarin.Forms app where I've implemented a signature control with the Syncfusion SfSignaturePad
I would like to send the signature image to an API.
For this, I've converted the ImageSource ...
2
votes
1
answer
188
views
Getting Error when resize image received from URL in Nativescript App
I am trying to resize image in Angular+Nativescript app after retrieving from URL but receving following error:-
ERROR Error: Uncaught (in promise): TypeError: imageSource.resize is
not a function. (...
1
vote
0
answers
371
views
Xamarin Forms - Images fetching from URL is not displaying in Android
I'm trying to fetch an image from the URL for my Xamarin Forms project.
<ci:CircleImage Source="{Binding displayPicture}" WidthRequest="50" HeightRequest="50" ...
0
votes
1
answer
332
views
Xamarin.Forms Image not showing from Source
I'm using fake Api for testing app.The Api is on this link: http://jsonplaceholder.typicode.com/. I connect my App, get all photos and add to CollectionView. Everything work perfectly fine but images ...
0
votes
1
answer
269
views
Xamarin.Forms setting Image Source in shared project
I have a Xamarin.Forms solution with Android and iOS projects.
I want the same images to be in both applications.
I know I can add the same image to both projects code seperately, but that doesn't ...
0
votes
1
answer
132
views
Assigning image resource during runtime for xaml .Net 2.0 multi platform mobile development
Goal:
I want to display an ImageButton with an image just like this:
The current solution is working but I can only choose to set a single image hardcoded into xaml.
For this purpose I have already ...
0
votes
1
answer
103
views
Why is setting a TemplateBinding on an ImageSource throwing a KeyNotFoundException?
I have the following ListBox subclass...
public class ImageAnnotationEditor : ListBox {
static ImageAnnotationEditor() {
DefaultStyleKeyProperty.OverrideMetadata(
typeof(...
0
votes
0
answers
181
views
Xamarin: Binding to ImageSource property is not working
I am trying to display images dynamically through binding:
I have ObservableCollection of TabItem to which I load a png into the Icon Property:
TabItems.Add(new TabItem()
{
Title = AppResources....
0
votes
0
answers
84
views
Xamarin.Forms: reusable error view with a ContentView, how to set the Image source?
I'm trying to create a reusable error view control with a ContentView, to display the errors related to API calls like no network, timeout, server issue, ...
This view will contain: an image, a title ...
1
vote
1
answer
695
views
ERROR Error: Uncaught (in promise): Asset '/storage/emulated/0/DCIM/Restored/IMG_20200115_103131.jpg' cannot be found
Working on nativescript application and need to access image and convert it into base64.
.then(function(selection) {
selection.forEach(function (selected) {
imageSourceModule
....
0
votes
2
answers
1k
views
WPF .NET Core App - Load bitmap to ui Image without saving it first - C#
I am trying to switch to the new WPF app style and so far I'm very unimpressed.
Is there a way to load a Bitmap which was generated by the application into a PictureBox without saving it first? So far ...
0
votes
2
answers
560
views
Convert imageSource coming from Xam.Plugin.Media 5.0.1 to byte array in Xamarinforms?
if (!CrossMedia.Current.IsPickPhotoSupported)
{
await Application.Current.MainPage.DisplayAlert("Photos Not Supported", ":( Permission not granted to photos.", &...
0
votes
1
answer
48
views
Problem Changing the Imagesource via a Static Class
I have this very annoying bug that i encounter in every project:
I have a class (same namespace) where i store references to Images like this:
public class Res
{
public static BitmapImage A = new ...
1
vote
2
answers
2k
views
How to set a Segoe MDL font icon as image source in WPF?
I have tried the search function (here and Google of course) and found nothing helpful for my problem.
I use the ButtonAdv control from Syncfusion (https://help.syncfusion.com/wpf/button/overview) and ...
1
vote
0
answers
74
views
Create a class collection from 2 different source collections
Edit: still stuck on this. Worked on other assignments in the meantime.
I appreciate the answer I already got, but it's not really answering my questions. It's making it more complicated for me.
Just ...
1
vote
1
answer
790
views
Image caching issue: Image Source always picking image from cache. in Xamarin Forms
I am using Image control in Xamarin forms android app. Used at two places one on hamburger slider and another on a content page. I am resolving image from web API and using the code below:
private ...
0
votes
0
answers
81
views
HTTPS Image URL Stopped Working in VS 2017 Project
I have a VS 2017 WPF project deployed to a number of clients (desktop app). The app displays images of staff members. The image is set using a URL as follows:
ImageBrush ib = new ImageBrush();
ib....
1
vote
0
answers
49
views
Set embedded image as button background - wpf [duplicate]
I have to embed the all images (all images are stored under a folder 'images' on project) within the exe of wpf application created. For that I have set the property of image as below .
Build Action :...
-1
votes
2
answers
427
views
is that possible to set ImageSource as null in wpf
Does anyone knows how to set ImageSource to null in xaml.
Something like this
<ImageSource x:Key="tt">null</ImageSource>
thanks!
0
votes
2
answers
347
views
Get images sources from string and display them in recyclerview?
I am using recyclerview to display images ( in drawable folder ), it's just an exercice and I have an arraylist of three object ( ImageModel ), each ImageModel has a field, I am calling it image ( ...
0
votes
2
answers
549
views
My images are not displayed using RecyclerView?
I have a small problem, I am trying to display a list of items, but it is not working, each item contains an image, so here is my Activity :
public class TestRecyclerImagesActivity extends ...