w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

Update Linked Excel Slide in Powerpoint Slide Show
The code to do the update is just one line: ActivePresentation.Slides(2).Shapes(1).LinkFormat.Update You can refer to both Slides and Shapes by index number or by name. The above example updates the link for the 1st Shape object on the 2nd Slide object. You need to follow the steps below in order to make that code fire at the proper time. From the Microsoft Office documentation: How to: Use Events with the Application Object To create an event handler for an event of the Application object, you need to complete the following three steps: Declare an object variable in a class module to respond to the events. Write the specific event procedures. Initialize the declared object from another module. Declare the Object Variable Before you can write proced

Categories : Excel

powerpoint vba random slide start
Create 4 buttons on each of these Slides ( Slide 1, 11,21,31) Add this action on these button click. Private Sub CommandButton1_Click() ActivePresentation.SlideShowWindow.View.GotoSlide 1 '(or11 or 21, or 31) End Sub Note : this will work only during slideshow.

Categories : Vba

Export each slide of Powerpoint to a separate pdf file
You can do that: Below code will create pdf with adding the slide number at end of current folder, file name. Sub ExportSlidesToIndividualPDF() Dim oPPT As Presentation, oSlide As Slide Dim sPath As String, sExt As String Set oPPT = ActivePresentation sPath = oPPT.FullName & "_Slide_" sExt = ".pdf" For Each oSlide In oPPT.Slides i = oSlide.SlideNumber oSlide.Select oPPT.ExportAsFixedFormat _ Path:=sPath & i & sExt, _ FixedFormatType:=ppFixedFormatTypePDF, _ RangeType:=ppPrintSelection Next Set oPPT = Nothing End Sub

Categories : Vba

ActiveX control inside PowerPoint slide
Even though I'm not quite sure, I suspect that the problem must be with ComRegisterFunction. I've found another implementation somewhere else, and with that implementation, the assembly is registered correctly, and can be accessed from PowerPoint. The implementation for the ComRegisterFunction is as follows: [ComRegisterFunction] static void ComRegister(Type t) { string keyName = @"CLSID" + t.GUID.ToString("B"); using (RegistryKey key = Registry.ClassesRoot.OpenSubKey(keyName, true)) { key.CreateSubKey("Control").Close(); using (RegistryKey subkey = key.CreateSubKey("MiscStatus")) { // 131456 decimal == 0x20180. long val = (long) (OLEMISC.OLEMISC_INSIDEO

Categories : C#

Creating a powerpoint with multiple charts on each slide from excel using vba
First change you ForEach loop to For For i = 1 To ActiveSheet.ChartObjects.Count Set cht = ActiveSheet.ChartObjects(i) Then put condition before creation of slides: chartNum = (i - 1) Mod 4 If chartNum = 0 Then newPowerPoint.ActivePresentation.Slides.Add newPowerPoint.ActivePresentation.Slides.Count + 1, ppLayoutTitle End If Then, put logic for placing charts on each slide : If chartNum = 0 Then newPowerPoint.ActiveWindow.Selection.ShapeRange.Left = 50 newPowerPoint.ActiveWindow.Selection.ShapeRange.Top = 50 ElseIf chartNum = 1 Then newPowerPoint.ActiveWindow.Selection.ShapeRange.Left = 300 newPowerPoint.ActiveWindow.Selection.ShapeRange.Top = 50 ElseIf chartNum = 2 Then newPowerPoint.ActiveWindow.Selection.ShapeRange.Left = 50

Categories : Excel

read /write html to/from slide of Powerpoint presentation
You can read from PPT file and get the text out of each slide, see below for an example : static void Main(string[] args) { Microsoft.Office.Interop.PowerPoint.Application PowerPoint_App = new Microsoft.Office.Interop.PowerPoint.Application(); Microsoft.Office.Interop.PowerPoint.Presentations multi_presentations = PowerPoint_App.Presentations; Microsoft.Office.Interop.PowerPoint.Presentation presentation = multi_presentations.Open(@"C:PPTmyPowerpoint.pptx"); string presentation_text = ""; for (int i = 0; i < presentation.Slides.Count; i++) { foreach (var item in presentation.Slides[i+1].Shapes) { var shape = (PowerPoint.Shape)item; if (

Categories : C#

Copy a shape from a PowerPoint Master slide layout to the cu
You haven't mentioned how exactly you'd identify the shape to be copied, but if you know in advance that it'll be, for example, the sixth shape on the second custom layout of the first master in the presentation and you want to copy/paste it onto slide 3: Sub Thing() Dim oSh As Shape ' This copies the sixth shape on the second layout of the first master ' Change as needed Set oSh = ActivePresentation.Designs(1).SlideMaster.CustomLayouts(2).Shapes(6) oSh.Copy Set oSh = ActivePresentation.Slides(3).Shapes.Paste(1) With oSh ' do any formatting/sizing/etc. you like here End With End Sub

Categories : Misc

WebBrowser control zoomed out inside PowerPoint Slide
That's because you change all the shapes on the slide into that control including the slide itself. You need to add a way to differentiate between your control and other controls. Just checking if something is, has an OLE control object is not sufficient. http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.oleobject_properties%28v=vs.90%29.aspx You could use the application property or the name or other to compare things. (Other choice is size, combination)

Categories : C#

How to preserve formatting of textshape format of powerpoint slide using c#
If you want to replace text within a PowerPoint shape and preserve the formatting, use PowerPoint's own Replace method. In VBA: With Shape.TextFrame.TextRange .Replace "this text", "with this text" End With

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#

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++

PowerPoint Open "Record Slide Show" Dialog and detect if Presentation has a recording c# addin
Finally got this to work. In the ribbon I have added the following: public static void callRecordDialog() { Globals.ThisAddIn.Application.CommandBars.ExecuteMso("RecordNarration"); } then in the form I have called it like this... private void btnVoiceOverYes_Click(object sender, EventArgs e) { vCreateRibbon.callRecordDialog(); this.Close(); } took ages to find that! hope it helps someone else Trev

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

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

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

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

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

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++

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

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

Using OpenXML to save a PowerPoint presentation as a PDF
... to turn a .ppt into a .pdf. Microsoft themselves suggested that I use OpenXML ... Can I actually achieve my objective using OpenXML? For the conversion of a .ppt into .pdf? I'm curious to see where you have read this ;-) No It's just impossible using OpenXml SDK: OpenXml SDK permits to create, modify OpenXml documents (.pptx in case of PowerPoint) and here you are talking about .ppt (Biff format) There is NO method for converting as PDF. OpenXml SDK permits to retrieve, create, modify the content of the document Without an Office Application but DOES NOT contain any methods to render it, or such Office Application methods such as SaveAs() ... No, a common way to convert Office documents as pdf is to use Office.Interop. This thread How do I convert Word files to PDF pr

Categories : C#

Save PowerPoint pptm to pptx
Basic usage is: With ActivePresentation .SaveCopyAs _ FileName:=.Path & "" & Left(.Name, InStrRev(.Name, ".")) & "pptx", _ FileFormat:=ppSaveAsOpenXMLPresentation End With (Or you can use .SaveAs. SaveAsCopy keeps the current open and doesn't open the copy, whereas .SaveAs sets the current to be the saved version) However, if the Powerpoint you are saving hasn't been saved at least once then the above will error (there is no file extension in Presentation.Name to find with InStrRev). You can either test for there being no full stop, or you can use a lazy method of asking FileSystemObject to get you the name without an extension (I am lazy so I prefer this method): So a better more robust method is: Dim fso As Object Set fso = CreateObject("Scripting.F

Categories : Vba

Powerpoint macro for picture resize and save as a wmf
There's some code on my PPT FAQ site that'll import a folder full of images, one per slide. With a few mods, you should be able to get it to import an image, scale it to the size you want, then export it. Batch Insert a folder full of pictures, one per slide http://www.pptfaq.com/FAQ00352_Batch_Insert_a_folder_full_of_pictures-_one_per_slide.htm After the code that imports the picture, size it as need be, then add: oPic.Export "c: emp est.wmf", ppShapeFormatWMF Substitute the path and filename you want to use for "c: emp est.wmf" of course.

Categories : Vba

Is there a way to read images from a folder and save it in powerpoint
you could try this: Is there an example of using MATLAB to create PowerPoint slides? For example: % before the following, you have to create the ppt as explained, see link above! % I prefer using some name instead of i or j for img_ind = 1:numel(pngfiles) % this depends on the ppt-version (see link above)-> here for 2007 and higher mySlide = Presentation.Slides.Add(1,'ppLayoutBlank') % Note: Change the image file full path names to where you save them Image1 = mySlide.Shapes.AddPicture('<full path> ame_of_image(img_ind).png','msoFalse','msoTrue',100,20,500,500) end % then you have to save it, see link above! In your case, I guess you have to save the image first as shown in the example: print('-dpng','-r150','<full path> est1.png') edit This wi

Categories : Image

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++

How to optimize vlookup for high search count ? (alternatives to VLOOKUP)
I considered the following alternatives: VLOOKUP array-formula MATCH / INDEX VBA (using a dictionary) The compared performance is: VLOOKUP simple formula : ~10 minutes VLOOKUP array-formula : ~10 minutes (1:1 performance index) MATCH / INDEX : ~2 minutes (5:1 performance index) VBA (using a dictionary) : ~6 seconds (100:1 performance index) Using the same reference sheet 1) Lookup sheet: (vlookup array formula version) A B 1 2 key51359 {=VLOOKUP(A2:A10001;sheet1!$A$2:$B$100001;2;FALSE)} 3 key41232 formula in B2 4 key10102 ... extends to ... ... ... 99999 key4153 ... cell B100001 100000 key12818 ... (select whole range, and press 100001 key35032 ... CTRL+SHIFT+ENTER to make it a

Categories : Performance

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++

how to change the DPI of an image from 72DPI to 300DPI with Imagick
I think this is what you want: I have setted resolution as pixel/inch with 300 dpi: <?php $im = new Imagick(); $im->setImageUnits(imagick::RESOLUTION_PIXELSPERINCH); $im->setImageResolution(300,300); $im->readImage("test.png"); $im->setImageFormat("png"); header("Content-Type: image/png"); echo $im; ?> Hope this will help you!

Categories : PHP

Adobe Bridge ExtendScript CS5 - Exporting PSD as 300DPI JPEGs
You can do that with a Photoshop action... Open one of your files in Photoshop Locate the Actions panel (window->actions) Click the new action icon Hit Ctrl Alt I to bring up the image size dialog Set the resolution to 300 pixels/inch Uncheck Resample Hit Ctrl Shift S to save the file somewhere Ctrl W to close (don't save) Click the stop button at the bottom of the Actions panel Switch to Bridge Highlight your files that need to be processed Choose Tools->Photoshop->Batch Pick the action that you just created from the drpodown Click OK And Photoshop will convert all of the files to 300dpi jpgs for you.

Categories : Javascript

Android Save High Scores
SharedPreferences prefs = this.getSharedPreferences("myPrefsKey", Context.MODE_PRIVATE); int oldScore = prefs.getInt("key", 0); if(newScore > oldScore ){ Editor edit = prefs.edit(); edit.putInt("key", newScore); edit.commit(); } to see.

Categories : Java

How to save or Export the video with 640 x 640 resolution in IOS?
If you can use -- AVAssetWriter/WriterInput has a pair of keys [NSString stringWithString:AVVideoScalingModeResizeAspectFill], AVVideoScalingModeKey which will automatically crop your frame to specified output size. Maybe that helps, I do not know about AVExportSession

Categories : Iphone



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