Questions tagged [loadimage]

179 questions
2
votes
3 answers

.css files not loading images in Symfony2

i'm fairly new to Symfony2 and trying to create my first php application. All was working fine until i got to of setting up background image in my .css file. For some reason all changes (background color, fonts etc.) to .css file are reflected in…
Sky21.86
  • 627
  • 2
  • 9
  • 26
2
votes
1 answer

Win32 Loadimage generates error 1812 and 1813

I met this problem when writing a minesweeper game. I used bitmap for numbers, mines and blanks. I think I have registered them correctly in the resource file IDI_0 BITMAP …
2
votes
1 answer

Loading image to canvas by string in processing

Brand new to this and thought i'd give processing a go. How can I get an image to load to the canvas by a string input? So far I have managed to make the image load if key is pressed e.g: if (key == 't' || key == 't') { img=loadImage…
2
votes
1 answer

Shell_NotifyIcon from RGB data

I have an icon in memory (RGB or whatever format I want via PIL/Pillow) and I want to use it with win32gui.Shell_NotifyIcon which requires an HICON. How do I get my RGB pixels into an HICON? Or, even though that's wasteful, I wouldn't even mind…
totaam
  • 1,306
  • 14
  • 25
2
votes
1 answer

Howto load 48x48 .ico at runtime into imagelist and preserv transparency

I prefer 48x48 .ico to show in popupmenu. If BkColor set to clNone, the icon look ugly. ImageList_GetIcon also get some ugly edge too. If BkColor set to ClMenu, the icon pretty but when highlight the icon have gray background. ImageList_LoadImage…
Boontawee Home
  • 935
  • 7
  • 15
2
votes
4 answers

LoadPicture error invalid picture

I am trying to take an image from a folder to check its width after that. To do it I am using the following peace of code: Dim pic As IPictureDisp Dim var As Variant var = "C:\Myfolder\Animage" & animationNum + 1 & ".png" …
Iban Arriola
  • 2,526
  • 9
  • 41
  • 88
2
votes
0 answers

Why do Samsung S1 and S2 allocating different heap size of memory for the same APP

I'm developing an Android Game application that requires loading a lot of images(png). I used BitmapFactory.decodeStream to load the images: BitmapFactory.Options opt = new BitmapFactory.Options(); opt.inScaled = false; opt.inPreferredConfig =…
user2570810
  • 21
  • 1
  • 1
2
votes
1 answer

async LoadImage routine hanging

I have a Windows 8 app that I'm attempting to load an image using the following code: private async Task LoadImage(IStorageFile storageFile) { System.Diagnostics.Debug.WriteLine("LoadImage started"); try …
Kyle
  • 17,317
  • 32
  • 140
  • 246
2
votes
1 answer

Drawing Image using WinAPI: LoadBitmap works but LoadImage() won't?

I'm pretty new to Windows programming and have been following theForger's Win32 API Programming Tutorial. I've been trying to draw an image inside a window. Having looked at similar problems, this code seems to be correct for loading a…
BeneGal
  • 180
  • 1
  • 11
2
votes
1 answer

how to load an image to a grid using pygame, instead of just using a fill color?

I am trying to create a "map of a city" using pygame. I want to be able to put images of buildings in specific grid coords rather than just filling them in with a color. This is how I am creating this map grid: def clear(): for r in…
iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169
1
vote
1 answer

Placing SD-Card Image into LinearLayout ImageView

I have an application which is some kind of MiniPaint which means I can draw images and save them to my sd-card. Now I would like to add some text options, using an XML Linear Layout. My idea is switching to an Activity with a XML view in wich I…
Jesus Adolfo
  • 97
  • 11
1
vote
1 answer

cannot loadImage() from URL

I try to loadImage() a file from random website to my sketch, but for some reason it doesn't work in lot of cases: function preload() { img = loadImage("https://i.tpg.ua/news/news_20190724_103144_1563953504.jpg"); // <- this URL works fine …
hayabuzo
  • 98
  • 7
1
vote
1 answer

Unity C# loadimage from byte

Game has a file generator (make levels files). I update an asset, add functional of save jpg to file. After that game read file and make image from this. My steps: settings.imageCode = coloredTexture.EncodeToJPG(); Save to file: if…
GoRoX98
  • 11
  • 4
1
vote
3 answers

Saving an image as a numpy array in a file and loading it back from the file as an image using Python

I am trying to convert an image to a numpy array and save it as a text/csv file. I am then trying to load the contents of the text/csv file back into an image. In the whole process, the dimension, datatype pixel values must not change in order to…
1
vote
1 answer

Get Docker Image Name when loading image to docker using docker-java lib

I am trying to load image to docker from tar file and verify if the tar file is valid or not. Now if tar file is valid I need to get the imageName and tag. But I checked and the return type for exec method is void. Does anyone know how can I get the…
Vipin Gupta
  • 213
  • 3
  • 15
1 2
3
11 12