png

PNG metadata read and write

谁说胖子不能爱 提交于 2019-12-13 09:02:22
问题 I am using a piece of code posted on stackover flow to write custom metadata to PNG image and read it. The write function seems to work fine but when i try to read data that i had written it throws NullPointerException. Can someone tell me what is wrong? Here is code for writing metadata try{ image=ImageIO.read(new FileInputStream("input.png")); writeCustomData(image, "software", "FRDDC"); ImageIO.write(image, "png", new File("output.png")); } catch(Exception e){ e.printStackTrace(); } Method

App crashes on converting a bitmap of png image

ⅰ亾dé卋堺 提交于 2019-12-13 08:59:54
问题 public Bitmap getResizedBitmap(Bitmap bm, int newWidth) { int newHeight; int width = bm.getWidth(); int height = bm.getHeight(); double aspect_ratio = width/height; newHeight = (int) (newWidth*aspect_ratio); if(iv!=null){ ViewGroup.LayoutParams params = iv.getLayoutParams(); params.height = newHeight; iv.setLayoutParams(params); } float scaleWidth = ((float) newWidth) / width; float scaleHeight = ((float) newHeight) / height; Matrix matrix = new Matrix(); matrix.postScale(scaleWidth,

Why Memory allocation failed whe HPDF_LoadPngImageFromFile using libhpdf?

对着背影说爱祢 提交于 2019-12-13 08:52:59
问题 I got a exception ERROR: error_no=1015, detail_no=0 using HPDF_LoadPngImageFromFile to load a png file with a jpeg file extention.I have libpng and libpng-dev installed. I can not figure out why this exception occurs. Anyone help me? Thanks. 回答1: LOL,I had compile libaru demo already....thanks stackoverflow..and libharu developer. ERROR: error_no=1015, detail_no=0 general , you must check your image file weather or not exist in current directory. indicate you c program want to load something

Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name?

被刻印的时光 ゝ 提交于 2019-12-13 08:06:27
问题 Is there any PNG-fix for IE 6 and without modifying current HTML, CSS and image name? any javascript way. I can add any thing in <head>........</head> but can't modify anythings inside <body>.....</body> . in one shot i want to make transparent all png transparent. 回答1: As I just learned, this script will make IE behave like a standards compliant browser, including PNG fixes. 回答2: OK here's a question: if you can't modify the HTML, CSS or image at all, what the heck can you modify? The raw

the png loading get out of memory android

北慕城南 提交于 2019-12-13 07:44:06
问题 I have a fragment that have a grid view.I'm putting 70 images in grid view.but when i run the app it get out of memory.how o solve it?should i convert all images to bitmap? this is my fragment class: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_games, container, false); mDrawerList = (GridView) rootView.findViewById(R.id.list_slidermenu); icons=new int[50]; for(int i=1 ;i<icons.length ;i+

standard sizing for cross browser cursor images?? jquery change of cursor images

杀马特。学长 韩版系。学妹 提交于 2019-12-13 07:07:55
问题 My cursor images were working as saved 128px x 128px pngs but now they are not in any browser :( did something change?? I have posted a problem a few days ago regarding my cursor images not changing with a onclick for my drawing application. I had help with my initial problem and you can see it is being called properly in the console and everything is great, but the image won't change from the brush image. I think it might be something to do with the sizing but I am not 100% sure. Any help

.PNG's breaking in IE 7 and 8, red x white border

心不动则不痛 提交于 2019-12-13 05:16:50
问题 we're working on a site for some really cool folks, it's here: http://journeyofaction.com it's a modified version of the 'wave' video-centric theme found on themeforest. they're uploading all their images as .PNG's. the other day they emailed us saying some of their users aren't seeing any images, only small white boxes with a red 'x' and where the image should be has a large white border. i checked it out in IE 7 / 8 / 9 on adobe browserlab, and verified that this is so. when we initially

IE9 png and background property

早过忘川 提交于 2019-12-13 05:00:55
问题 I have an issue here, I'm working on a project which is properly working in firefox and chrome. Now I'm testing in IE. I thought with all the advertising about IE9, it would look great, or at least not break anything. I have several problems though : I use some png images. And even if the images are showing, I have a little red cross above it. And I really don't understand why ... you can see it here : http://www.hostingpics.net/viewer.php?id=173809Sanstitre.png In the same pic, you can see

Sprite Kit art assets naming convention

不打扰是莪最后的温柔 提交于 2019-12-13 04:57:46
问题 Making my 1st Sprite Kit game & almost finished it. Just getting my images finalized. Problem is, with the addition of iPhone 6 & 6 Plus, I am having issues figuring out how to name my game assets. For instance, one of my several background images is called "1MBack.png". Sometimes people write "Default–568h@2x.png" and I try to figure out if I need the "Default–568h" part in my game asset names. The naming convention I used for my art is as following: << 1x (iPhone 2G, 3G, 3GS) = 1MBack.png >

Delphi Android download remote PNG to TImage

房东的猫 提交于 2019-12-13 04:35:55
问题 Trying to assign remote PNG file to TImage. I've tried following, it says "Invalid stream format". I have no clue how to download PNG image into Firemonkey styled apps (XE8): procedure TfrmMain.Button1Click(Sender: TObject); var qrString: String; MS : TMemoryStream; Png: TImageMultiResBitmap; begin MS := TMemoryStream.Create; Png := TImageMultiResBitmap.Create(Png); try IdHTTP1.get('https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=chujisko',MS); Ms.Seek(0,soFromBeginning); Png