i am using open xml sdk to copy slides into another presentation , when the slides are copied and my desired presentation is generated , I iterate through each slide of the generated document and replace its existing images with the image of my choice , the process is executing and the images gets replaced , but here is the bind , if the dimensions of my images are larger then the image in the document , the image gets cropped to fit to the size that was previously occupied by the replaced image .But if i do the whole process manually , by right clicking with my mouse , power point changes the dimension of the image its get shorter but its not cropped and the whole image is displayed ...
so what approach should i go for , do i have to change some xml settings through code , or do i have to change the dimension of my images using c# classes , what is the right approach to tackle this issue???
guys i will be anxiously waiting for your response ......
Better change the image before replacing the image in your target presentation file. As power point is going to embed your image in the file itself, you can reduce the size of the overall generated file if you compress the images to required dimensions before replacing.
Changing the dimensions in the xml is also a valid idea but you are embedding images into the file without any added advantage.
Some pointers on how to resize image in c# :
https://stackoverflow.com/a/87786/860243
http://www.peterprovost.org/blog/2003/05/29/Resize-Image-in-C/
http://dzone.com/snippets/c-resize-image-while
Related
I basically want to make overlays like you know them from the package explorer in eclipse, a base image, and a smaller picture laid above in the bottom right corner. I used DecorationOverlayIcon for this and fist some pics from the already existing resources just to if it works. It the overlays showed up, but even though I had given the following instructions
imageDescriptorArray[IDecoration.BOTTOM_RIGHT] = alreadyExistingImageDescriptor;
DecorationOverlayIcon(baseImage, overlaysArray);
the overlayed image was very big. Than I made my icon, which is a 16x16 .png. It like the other pictures covers up the icon almost completely. How do I make the image smaller, do I have to convert it to a smaller size like 8x8 for that, or alternatively, how do I push it further down?
DecorationOverlayIcon doesn't resize anything so you must provide small images for the overlays.
There is also no way to change the calculated position of the overlays.
I am struck with issue .
I want to use My personal Image as an image on whirly globe.I used a Jpeg file and changed into .tiff file and added to Tile Mills as a Layer (Following the rules specified in the crash course of tile mills).Now i am facing an issue while exporting the image as MbTiles .
I looked into this Link for taking reference on what should be 'Dimensions' of the image to be used on whirly globe.
Right now i have an image whose dimensions are 10184X7638. But this image is not able to wrap the complete Whirly Globe.
Please guide me on
what the dimensions should be there of the image to be used for whirly globe.
can i use this values while creating a frame for the image as the image gets strected when is added to the globe .Image1
.
This is the Image i am talking about it has a dimensions of 10184 X 7638 pixels and when i select these bounds as specified Image1 (-180,-85.11,180,85).then i get this Image2
. Here you can see the image is not able to cover the complete bounds and hence the globe also is not fully wrapped with this image.
Thanks!!
The image is less about dimensions and more about mapping it to geographic coordinates so that it can completely cover the globe. You need to make sure the image takes up your whole TileMill map if you want it to completely cover the globe in WhirlyGlobe.
i am converting the image into thumbnail format and sending it to server and i want to convert it back to original size while receiving can any one please tell me how to resize the image to original without loosing quality.....
i tried directly to displaying the image in image view but the quality of the image is missing ...
can any one please help me how to maintain the quality of the image .......
Downscaling is irreversible, some information lost forever.
What you're asking isn't possible. You can't enlarge an image while maintaining the same quality. If you think about an image as a mapped array of pixels (literally, a "bit-map"), this makes sense. The image is saved with a fixed amount of data, and that's all you have to work with when you resize it. Any examples to the contrary (like TV shows) are purely fictional.
Investigate using vector graphics instead, which can be resized at will without a loss of quality.
you simply can not convert an image from thumbnail to original size and retain the quality it had in its original size.
if you want to display the image full-size, you have to send the full-size image.
You could think about using a Vector image? They do not lose quality when resized. But I have no clue whether you can use them for thumbnails in iOS.
See this wiki page for more info about Vector graphics.
I have a 1024x1024 png i want to split it into 64x64 (256 equal parts)
i found a program that can do this but it's not free it's called "Split and Tile"
i would like to find out a free way to do this.
ImageMagick could do that for you with a simple one-liner:
convert -crop 64x64 source.png tile%d.png
http://arje.net/rasterbator and http://posterazor.sourceforge.net/" do not work. I have tried it. You may try Online image spliter.
Here, I will guide you how to upload and split your image in the website, since it is a bit tricky. Upload your image by clicking picture icon close to upload image.
Next, hit upload image and wait your image to be uploaded to the website.
At the upper center position you will now see a text split image. Look at the left side, you will see row and column. Adjust row and column as you need.
After you hit split image your picture will be automatically downloaded.
Anybody know how to load the large image to become a blur image first and then only slowly load the full size of image. This will at least let the user to preview the image first other than waiting for a few second to load the full size image.
Thanks
You have to prepare two images, one is for blur image, and one is for the full size of image. As for the JPEG image with EXIF, it contains a thumbnail image inside. So the digital camera will show the thumbnail images when browsing.
Somehow I remember in Image processing class, professor told us that when browsing the web, the server would send your browser a blur image A, and another image B, after you getting both, your computer will be doing image computation on A&B to produce an intermediate image C and do computation on A&C produce another image...this procedure goes on for a couple times to get the original image. That's why you are seeing blurred image at the first place. This procedure theoretically reduce image size linearly.