w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android pdf writer APW high resolution images cause out of memory expection
First of all the resolution you are mentioning is very high. And i have already mentioned the issues related to Images in Android in this Answer Secondly in case first solution doesn't work for you i would suggest Disk based LruCache.And store the chunks into that disk based cache and then retrieve and use it. Here is an Example of that. Hope this would help. If it doesn't comment on this answer and i will add more solutions.

Categories : Java

AppleScript for succesfuly importing photos to Aperture
Brute-Force Muscle Import You may want to try this hardcore script. It will take AGES to finish, but it should work, because it does what you ask…it adds each file ONE BY ONE to a specified project and checks to make sure there aren't any duplicates by name only. I am about to test this script on 13262 pictures. It will probably run all night, but it will hopefully beat the built-in importer that keeps failing. I recommend that you create a test project on your first run, just to ensure you aren't importing duplicates. Optionally, you can then move the images into the appropriate project in Aperture. I have already set this up. If you want to ignore this and import them directly into the original project, you can do this by changing the following line: my importToApertureAsReference(

Categories : Osx

high resolution timer in C++
1.e-6 is a number in a scientific notation that is equal to 10 ^ -6, or 0.000001, and is of type double. You can read it as «ten to the minus six». Since gettimeofday() is returning time as two separate integer numbers - seconds and microseconds, microsecond portion is converted to a double value representing seconds through dividing integer microseconds value by a million. Then, whole seconds (tv_sec) are added to the result. For example, let's say gettimeofday() returns 6 seconds and 5 microseconds, this code would do 5 * 0.000001 + 6 and yield 6.000005 seconds. On a side note, gettimeofday() is not really considered a high-resolution clock (and certainly has nothing to do with timers), and it is also deprecated. You should consider using clock_gettime() instead. It supports variou

Categories : C++

c# high resolution images in PDF
First let me clear a couple of misunderstandings: a PDF document doesn't have a resolution. The comment by spender was wrong. There is no such thing as DPI in PDF. The resolution only comes into play when a PDF is rendered (to the screen, to paper,...) and that's why there may be a DPI in a PDF viewer (but that's something completely different). when you scale an Image object in iTextSharp, you don't lose any information: the number of pixels remains the same. Whereas PDF doesn't have a resolution, the images inside a PDF do. When you the image scale down (that is: you put the same number of pixels on a smaller canvas), the resolution increases; when you scale up, the resolution decreases. Now for your question: you're not obliged to create A4 pages: Image img = iTextSharp.text.Im

Categories : C#

Share A High Resolution Image
Please try below code : + (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize; { UIGraphicsBeginImageContext( newSize ); [image drawInRect:CGRectMake(0,0,newSize.width,newSize.height)]; UIImage* newImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return newImage; } specify your new size as (850,850) and pass your original image, but make sure your height and width ratio of original image should be same as converted image ratio. Hope it will works for you.Thanks EDIT : For Capturing screenshot of your view follow below code : - (UIImage*)captureView:(UIView *)yourView { CGRect rect = [[UIScreen mainScreen] bounds]; UIGraphicsBeginImageContext(rect.size); CGContextRef context = UIGraphicsGet

Categories : Objective C

High resolution Image - OutOfMemoryError
Three hints which should help you: Use this to load your images, from Loading Large Bitmaps Android documentation: public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth, int reqHeight) { // First decode with inJustDecodeBounds=true to check dimensions final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(res, resId, options); // Calculate inSampleSize options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight); // Decode bitmap with inSampleSize set options.inJustDecodeBounds = false; return BitmapFactory.decodeResource(res, resId, options); } public static int calculateInSampleSize( BitmapFactory.Op

Categories : Android

High Resolution HTML5 Canvas Screenshot
Unfortunately, while you can draw paths like you would in a vector image, once they are drawn they become rasterised and cannot be scaled without interpolation. Instead you would need to completely redraw everything, multiplying all coordinates by your scale factor, to render the path elements properly.

Categories : Javascript

Using Images of high resolution gives an BITMAP error?
You shouldn't load all these images into memory at the same time. Why would you? You should create some gallery of thumbnails or something along those lines and lazy load as needed. There is no way around this. You're going to run out of memory loading images the way you're doing, even on the high end devices since android only gives you a very small memory footprint within which to operate.

Categories : Android

jquery mobile tablet with high resolution
If setting the view port width to 800px works on portrait (like you said), then maybe you can use a CSS media query to set the view port width to something better in landscape. @media screen and (orientation:portrait) { /*css goes here*/ } @media screen and (orientation:landscape) { /*css goes here*/ }

Categories : Jquery

Is there a high resolution ERwin data model (.emf) viewer?
This has a lot to do with the display properties of the stored display. Before you generate you EMF file. Go to each stored display and set each one to normal zoom level, then generate you picture. If you move to Erwin R9 the generation of HTML reporting like the old Report template builder is back!!

Categories : Misc

Saving high resolution image with rounded corners
May be the following link will be of some help. http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/

Categories : IOS

problems loading a high resolution image with loader in AS3
The problem might be the dimensions of the BitmapData that would represent your image, though this depends on several variables; the main one being which version of Flash Player you are using. From the documentation about BitmapData: In AIR 1.5 and Flash Player 10, the maximum size for a BitmapData object is 8,191 pixels in width or height, and the total number of pixels cannot exceed 16,777,215 pixels. (So, if a BitmapData object is 8,191 pixels wide, it can only be 2,048 pixels high.) In Flash Player 9 and earlier and AIR 1.1 and earlier, the limitation is 2,880 pixels in height and 2,880 in width. Starting with AIR 3 and Flash player 11, the size limits for a BitmapData object have been removed. The maximum size of a bitmap is now dependent on the operating system.

Categories : Actionscript

twitter bootstrap for high resolution mobile displays
This is my solution @-ms-viewport { width: auto!important; } @-webkit-viewport { width: device-width; } @-moz-viewport { width: device-width; } @-ms-viewport { width: device-width; } @-o-viewport { width: device-width; } @viewport { width: device-width; }

Categories : Twitter

Convert high resolution clock time into an integer (Chrono)
You can use a std::chrono::duration_cast: http://en.cppreference.com/w/cpp/chrono/duration/duration_cast

Categories : C++

Graphics.DrawString with high resolution bitmaps == LARGE TEXT
The size of a font is expressed in inches. One point is 1/72 inch. So if you draw into a bitmap that has 300 dots-per-inch then your font is going to use a lot more dots for the requested number of inches. So when you display it on a 300 dpi display then you'll get the size in inches back that you asked for. Problem is, you are not displaying it a 300 dpi device, you are displaying it on a 96 dpi device. So it looks much bigger. Clearly you don't really want a 300 dpi bitmap. Or you want to draw it three times smaller. Take your pick.

Categories : Vb.Net

Save from device as CMYK high resolution tiff file
You can generate a png file (in the RGB space) in R png("/tmp/a.png", width=6, height=6, units="cm", res=1200) plot(1) dev.off() and convert it to TIFF outside R. For instance, with ImageMagick: convert -colorspace CMYK a.png a.tiff identify -verbose a.tiff # To check the result # Image: a.tiff # Format: TIFF (Tagged Image File Format) # Class: DirectClass # Geometry: 2834x2834+0+0 # Resolution: 472.44x472.44 # Print size: 5.99865x5.99865 # Units: PixelsPerCentimeter # Type: ColorSeparation # Base type: ColorSeparation # Endianess: MSB # Colorspace: CMYK # ...

Categories : R

How to upload a high resolution image to Server in Base64 Converted String
Probably you might be getting an exception on byte[] b = baos.toByteArray(); To handle that you want to consider recycling your images. Also, using Multipart is considered a better option, since you are using Base64 you might want to ponder on Jen's Post too. One more suggestion is, if you are on API level 11 or more then you may consider using: android:largeHeap="true" Which will help you to carry out your conversions and processing safely(Provided that you are not leaking any variable). For more information on this, see the documentation on Application. Let me know if you still face any issues.

Categories : Android

Capturing pictures from webcam at high resolution while previewing at a lower one using DirectShow.Net
You can split the stream using a SmartTee or InfiniteTee, but I'm not sure how to change the resolution after you've split it. Not sure how to do this. You could capture the images and manually place them into the picture box using a SampleGrabber. Then, you have complete control of when the frames are shown in the picture box. If you want XP and up, you'll need to use DirectShow. MediaFoundation (the modern alternative) is only Vista and up. My application is currently capturing images at a different resolution than the resolution of the video being seen by the user. I'm doing this because the webcam I'm using (Logitech C920) has both a Capture pin and a Still pin, which have different listings of video formats. I'm able to get the set of resolutions for each pin independently, and cha

Categories : Dotnet

How to retain Listbox visualization with high resolution images in windows phone 8
In my current project (winrt) I have similar problem and solved it by resizing images during binding (in getter of nested field) get { return new BitmapImage(new Uri(url)) { DecodePixelWidth = 200 }; } Hope it's help you too.

Categories : Windows Phone 8

List View Not Showing Images on Right Most Corner only in High Resolution Devices
apply android:layout_width="match_parent"and change android:layout_weight=""(shown below) to both ImageView and inner LinearLayout in rowdata.xml here is code <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="right" android:orientation="horizontal" > <ImageView android:id="@+id/imageView1" android:layout_width="match_parent" android:layout_height="44dp" android:layout_weight="2" android:scaleType="fitStart" android:src="@drawable/ic_launcher" /> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_w

Categories : Android

Why should I use the SetTimer function instead of multimedia timer services for applications not requiring high resolution timing?
Higher-resolution timing is less efficient. The OS needs to keep track of time more accurately, and it may need to suspend other threads at inefficient times to get your timer called on time. So basically, high resolution timers are expensive, and you should only use expensive things when you need to.

Categories : C++

High resolution timers vs low resolution timers
Typically, a low resolution timer will fire an interrupt to the processor every x amount of time (say, every 1, 5, 10, 16.6667, 17.81291 or 20ms - examples, there are many other values it could be). This is used by the OS to switch task when a task has been running for "too long" as well as maintaing current time, "timing out" waiting events, and such things (e.g. a sleep type function call would set itself to "time out" at the end of the sleep time). A high resolution timer is typically a hardware register that is continually counting [up or down]/updating at a frequency in the high KHz or higher (such as 32768Hz, 36KHz, 12MHz, 2.2GHz - these are just some examples, could be almost anything). Typically, this is used by "reading the current value", and you get whatever the current count

Categories : C++

Importing multiple images of original resolution : low memory warning issue
'returnArray' variable you declared is outside the autorelease pool block. Now you are adding your image to a dictionary 'temp' which is inside auto release pool but ultimately you are adding this 'temp' to 'returnArray' and hence its retain count increased which is causing a leak actually. Even do keep in mind one more thing while working with images. When you are using an image it doesn't take the memory what it shows as file size as many would be expecting (ie., some thing less than 3MB for a 2048 x 1536 ) . Instead it is actually loaded in raw format taking memory based on a calculation as follows: width x height x n bytes where n is number of bits being taken to represent colors per pixel mostly it is 4. so for same 2048 x 1536 image it is going to take 12MB. So now check what is

Categories : IOS

Missing photos when retrieving Users tagged photos facebook-graph API
The only thing that comes to mind is the settings of each user since according to the answer posted here - facebook graph api - missing fields, API access to these things can be turned off at the user's discretion.

Categories : Facebook

How can I show last saved photo in Photos app iOS via "photos-redirect:" URL scheme?
photos-redirect:// is the URL Scheme for Photo App. However, it is undocumented, thus you shouldn't use it. To view / select a photo, use UIImagePickerController .

Categories : IOS

High resolution images aren't displaying on iPhone on a Website I built & 3 images aren't on the width it should be
Check this webpage: http://www.williammalone.com/articles/html5-javascript-ios-maximum-image-size/ Also I have come across before safari and some webservers require the filename to be 100% right, whilst I had found on PC are more forgiving, I use a NAS box as a test for ios devices and come across this before..

Categories : HTML

PHP Facebook API Import photos not working
You didn't ask for permissions. $loginurl = $facebook->getLoginUrl(); becomes $loginurl = $facebook->getLoginUrl(array('scope' => 'user_photos')); Read more about getLoginUrl here. And you will find the list of permissions here.

Categories : PHP

Android API for Google+ Photos
I finally found all the pieces for that I need. The end result is to use AccountManager to get the auth token and PicasawebService to do the rest. Though there are some annoying bug with adapting the class. I wrote up my little adventure here along with example code. http://roostertech.wordpress.com/2013/08/09/accessing-gphoto-android/

Categories : Java

Get private photos using flickrj-android
I'm not very familiar with Java and that framework but will try to help. I found next method name in that framework: public class PeopleInterface { public static final String METHOD_GET_PHOTOS = "flickr.people.getPhotos"; /** * Returns photos from the given user's photostream. Only photos visible the * calling user will be returned. this method must be authenticated. * * @param userId * @param extras * @param perpage * @param page * @return * @throws IOException * @throws FlickrException * @throws JSONException */ public PhotoList getPhotos(String userId, Set<String> extras, int perPage, int page) From Flick API docs I found next: flickr.people.getPhotos Return photos from the given user's photostr

Categories : Android

Android: My GridView's photos is mixed
Try this... Use View holder for holding details... public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; final ViewHolder holder; if(convertView == null) { view = inflater.inflate(R.layout.phototab_list, parent, false); holder = new ViewHolder(); holder.photo = (ImageView)convertView.findViewById(R.id.PHOTOS); holder.CHECK = (CheckBox)convertView.findViewById(R.id.PHOTOSCHECK); holder.options = new BitmapFactory.Options(); holder.options.inSampleSize = 16; }else { holder = (ViewHolder) view.getTag(); } Log.i("LOAD", position + ""); if(ReceivePhotos.get(position) == null) { ReceivePhotos.set(position, BitmapFac

Categories : Android

Android: save a large number of photos from url
Consider using Universal Image Loader In my application i load more than 300 photos and i don't get outOfMemoryException error however the library needs to draw some cache. Here's the project on GitHub: https://github.com/thest1/LazyList

Categories : Android

uploading photos/videos on facebook app running on android or ios?
"should I expect any problems with uploading photos/videos from mobile devices -> android, iOS, blackBerry ?" No. But 1 thing you should know that the user wont be able to post photos/videos to the friends wall (if that's in your requirement); yet there's a workaround that the user can tag his/her friends in the photo/video. Some links that might be useful to you- Videos Android iOS API Reference Photos Android iOS API Reference

Categories : Android

How can I upload multiple photos in one post on Google+ from G+ Android SDK?
It should work with addStream() method, unfortunately... it doesn't work. Indeed it makes the application crash. After a long search, I finally got it: it's not possible if using the simplified G+ SDK! (the one dedicated to Android). There is a second one, included in the Google API family that you can find there: http://code.google.com/p/google-api-java-client/wiki/APIs#Google+_API This one will let you build more advanced post, included, several pic one. Unfortunately the second SDK is much more low level, not dedicated to Android, it's a kind of Java abstraction over http request. Regards

Categories : Android

I retrieve this type of error while getting photos from dropbox in android?
Set the access type of your Dropbox app to full Dropbox instead of app folder. You have the this option when you register the app. You may check your current access type at Developer Apps page.

Categories : Android

Saving high scores is not working for me
The problem is that hs.text will not be set (or will be set to 0 if you did that in the xib/Storyboard) when viewDidLoad gets called. Because of that, it always goes into the first if statement and you do not use the values stored in NSUserDefaults. I would suggest setting the text fields as follows: - (void)viewDidLoad { [super viewDidLoad]; highscore = [[NSUserDefaults standardUserDefaults] floatForKey: @"highScore"]; highscore1 = [[NSUserDefaults standardUserDefaults] floatForKey: @"highScore1"]; highscore2 = [[NSUserDefaults standardUserDefaults] floatForKey: @"highScore2"]; highscore3 = [[NSUserDefaults standardUserDefaults] floatForKey: @"highScore3"]; highscore4 = [[NSUserDefaults standardUserDefaults] floatForKey: @"highScore4"]; if (highscore) hs.text = [NSSt

Categories : IOS

Android: how create xml file that contains the list of albums and photos from gallery
I would suggest you to get some basic java experience as these problems are really common in the programming world and has almost nothing to do with Android. Anyway you should make a List that holds Album objects (model) and an Album object should contain a List that holds Photo objects (model). Then you can loop though the list by getting the number of photos/albums with the List.size() method. Good luck.

Categories : Android

Why is scope resolution not working on overridden variable?
It seems you have: B[int B::num] and D[int B::num, int D::num] if you call d.num it defaults to D::num if you call d.B::num it defaults to B::num

Categories : C++

Azure Could Computing high availoability vs NEO4J high availability?
The short answer is probably yes. Windows Azure provide you infrastructure that allow you to build high availability system, it won't make any system high available by magic. As NEO4J is state-full, each node (with only one node Azure don't give you any SLA, you instance will be down) will need to share some state and the way to do it will be dependent on how NEO4J is working. So you will need to rely on NEO4J mechanism to do it. I don't know how NEO4J is working but you won't be able to skip designing an high available architecture around NEO4J using Windows Azure infra. Cloud may be a magic buzz word that can make things append on management level, but when we are on hard real world level Harry magic wand doesn't exist.

Categories : Neo4j

C# Tracking mouse movement at a resolution greater than monitor resolution
My initial purposed solution did the trick. On trackingEnabled I center the mouse and check how much it has moved every 100ms, after that I recenter it and send the data to my controller. using System; using System.Timers; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using PIC18F_Servo_Control_V2; namespace FSI_Grid1 { public partial class Form1 : Form { TabControl LeftControlTab; System.Timers.Timer myTimer; public delegate void UpdateStatusBarDelegate(); TabPage myTabPage; Grid myGrid; serialConnection myConnection; int timerDelay = 100; int initialX, initialY, currentX, currentY, minX, mi

Categories : C#

quicksand sorting price values low to high / high to low
val() gives you a string, so > and < comparisons are lexographical (not numeric). Try wrapping the values in parseInt() or parseFloat(). Make sure to add appropriate error handling as well.

Categories : Jquery



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.