Image size on memory
Hi all, I new to this forum and I have somethings to ask :)
1/ I figured out that on a 64K color device, the bpp (bits per pixel) is 16 and on a 256K color device, the bpp is 18. Is that right?
2/ Could anyone please tell me how much memory does an image sized WIDTH * HEIGHT take? Is it WIDTH * HEIGHT * bpp?
Thanks.
it would be W*H*2 bytes in lots of device , eg. nokia or more
the format is 4444 for ARGB .
Similar Messages
-
Image size and profiles in Aperture;
version 3.0.3.
First problem is I can't see where I can fix the image size before getting to the print page! I prefer to do this and preview it before printing, as I used to in PS and then Lightroom.
Other problem is that Aperture tells me to turn off my printer colour management, but I can't get to such a control from the HP B9180 driver that is now part of OSX (10.6).
Help please!Pat,
You don't need to set the image size as such. The image prints on the page according to two sets of criteria:
1. Whether you set dpi to custom or a specific value, and
2. The page margins you set either as a printing once-off, or as a new printing pre-set.
For example, I print "arty" photos in a portrait format on A4 matte paper. Left and right margins are around 3cm, top margin is around 3cm, bottom margin is around 5 cm (all numbers are from memory...). I have a title just below the image.
I created this particular page setup for a certain photo and liked it so much I saved it as another print preset. Any photo I print using that preset fits within the margins defined. The very next print might be the same photo, but this time printing A3+ on Ilford Galerie Smooth Pearl. Choose the photo, select the relevant print pre-set, print. Re-sizing is irrelevant - the print in both cases is coming from the processed raw at maximum resolution.
Regards,
Calx -
Image size and dimensions in Safari
Is there a fast method of viewing image size and dimentions in Safari? I can open image in new tab and see its width and height in tab/window name. I can save image to the Desktop and see file size but it's not convenient. Is there some another way without opening an saving image somewhere like Control+click -> Properties?
iMac G4 Mac OS X (10.4.3)Pat,
You don't need to set the image size as such. The image prints on the page according to two sets of criteria:
1. Whether you set dpi to custom or a specific value, and
2. The page margins you set either as a printing once-off, or as a new printing pre-set.
For example, I print "arty" photos in a portrait format on A4 matte paper. Left and right margins are around 3cm, top margin is around 3cm, bottom margin is around 5 cm (all numbers are from memory...). I have a title just below the image.
I created this particular page setup for a certain photo and liked it so much I saved it as another print preset. Any photo I print using that preset fits within the margins defined. The very next print might be the same photo, but this time printing A3+ on Ilford Galerie Smooth Pearl. Choose the photo, select the relevant print pre-set, print. Re-sizing is irrelevant - the print in both cases is coming from the processed raw at maximum resolution.
Regards,
Calx -
PS 6 locks up when I try to use the image size tool
My system is Windows 8.1 64 bit
All the other tools seem to be working OK.
When I try to use the image size tool PS just locks up and the only way to exit the program is using Task Manager??
Adobe Photoshop Version: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
Operating System: Windows NT
Version: 6.2
System architecture: Intel CPU Family:6, Model:12, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2
Physical processor count: 4
Processor speed: 3193 MHz
Built-in memory: 8098 MB
Free memory: 5146 MB
Memory available to Photoshop: 7079 MB
Memory used by Photoshop: 60 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: NVIDIA Corporation
Video Card Renderer: GeForce GTX 960/PCIe/SSE2
Display: 2
Display Bounds:= top: 0, left: 0, bottom: 1080, right: 1920
Display: 1
Display Bounds:= top: 0, left: -3840, bottom: 2160, right: 0
Video Card Number: 1
Video Card: NVIDIA GeForce GTX 960
OpenCL Unavailable
Driver Version: 9.18.13.4788
Driver Date: 20150313000000.000000-000
Video Card Driver: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
Video Mode: 3840 x 2160 x 4294967296 colors
Video Card Caption: NVIDIA GeForce GTX 960
Video Card Memory: 2048 MB
Video Rect Texture Size: 16384
Serial number: 92628972888245698235
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
Temporary file path: C:\Users\Owner\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
Startup, 111.8G, 37.8G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2012/06/05-15:16:32 66.507768 66.507768
adbeape.dll Adobe APE 2012/01/25-10:04:55 66.1025012 66.1025012
AdobeLinguistic.dll Adobe Linguisitc Library 6.0.0
AdobeOwl.dll Adobe Owl 2012/06/26-12:17:19 4.0.95 66.510504
AdobePDFL.dll PDFL 2011/12/12-16:12:37 66.419471 66.419471
AdobePIP.dll Adobe Product Improvement Program 6.0.0.1654
AdobeXMP.dll Adobe XMP Core 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPFiles.dll Adobe XMP Files 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPScript.dll Adobe XMP Script 2012/02/06-14:56:27 66.145661 66.145661
adobe_caps.dll Adobe CAPS 6,0,29,0
AGM.dll AGM 2012/06/05-15:16:32 66.507768 66.507768
ahclient.dll AdobeHelp Dynamic Link Library 1,7,0,56
aif_core.dll AIF 3.0 62.490293
aif_ocl.dll AIF 3.0 62.490293
aif_ogl.dll AIF 3.0 62.490293
amtlib.dll AMTLib (64 Bit) 6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00) 1.000000
ARE.dll ARE 2012/06/05-15:16:32 66.507768 66.507768
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2012/06/05-15:16:32 66.507768 66.507768
BIBUtils.dll BIBUtils 2012/06/05-15:16:32 66.507768 66.507768
boost_date_time.dll DVA Product 6.0.0
boost_signals.dll DVA Product 6.0.0
boost_system.dll DVA Product 6.0.0
boost_threads.dll DVA Product 6.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.0.5.19287 2.0.5.19287
CoolType.dll CoolType 2012/06/05-15:16:32 66.507768 66.507768
data_flow.dll AIF 3.0 62.490293
dvaaudiodevice.dll DVA Product 6.0.0
dvacore.dll DVA Product 6.0.0
dvamarshal.dll DVA Product 6.0.0
dvamediatypes.dll DVA Product 6.0.0
dvaplayer.dll DVA Product 6.0.0
dvatransport.dll DVA Product 6.0.0
dvaunittesting.dll DVA Product 6.0.0
dynamiclink.dll DVA Product 6.0.0
ExtendScript.dll ExtendScript 2011/12/14-15:08:46 66.490082 66.490082
FileInfo.dll Adobe XMP FileInfo 2012/01/17-15:11:19 66.145433 66.145433
filter_graph.dll AIF 3.0 62.490293
hydra_filters.dll AIF 3.0 62.490293
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
image_compiler.dll AIF 3.0 62.490293
image_flow.dll AIF 3.0 62.490293
image_runtime.dll AIF 3.0 62.490293
JP2KLib.dll JP2KLib 2011/12/12-16:12:37 66.236923 66.236923
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1640
mediacoreif.dll DVA Product 6.0.0
MPS.dll MPS 2012/02/03-10:33:13 66.495174 66.495174
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.8428
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS6 CS6
Plugin.dll Adobe Photoshop CS6 CS6
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 3.0.0.383
PSArt.dll Adobe Photoshop CS6 CS6
PSViews.dll Adobe Photoshop CS6 CS6
SCCore.dll ScCore 2011/12/14-15:08:46 66.490082 66.490082
ScriptUIFlex.dll ScriptUIFlex 2011/12/14-15:08:46 66.490082 66.490082
tbb.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 6.0.0.24
WRServices.dll WRServices Friday January 27 2012 13:22:12 Build 0.17112 0.17112
wu3d.dll U3D Writer 9.3.0.113
Required plug-ins:
3D Studio 13.0.1 (13.0.1.3 x001)
Accented Edges 13.0
Adaptive Wide Angle 13.0
ADM 3.11x01
Angled Strokes 13.0
Average 13.0.1 (13.0.1.3 x001)
Bas Relief 13.0
BMP 13.0
Chalk & Charcoal 13.0
Charcoal 13.0
Chrome 13.0
Cineon 13.0.1 (13.0.1.3 x001)
Clouds 13.0.1 (13.0.1.3 x001)
Collada 13.0.1 (13.0.1.3 x001)
Color Halftone 13.0
Colored Pencil 13.0
CompuServe GIF 13.0
Conté Crayon 13.0
Craquelure 13.0
Crop and Straighten Photos 13.0.1 (13.0.1.3 x001)
Crop and Straighten Photos Filter 13.0
Crosshatch 13.0
Crystallize 13.0
Cutout 13.0
Dark Strokes 13.0
De-Interlace 13.0
Dicom 13.0
Difference Clouds 13.0.1 (13.0.1.3 x001)
Diffuse Glow 13.0
Displace 13.0
Dry Brush 13.0
Eazel Acquire 13.0.1 (13.0.1.3 x001)
Embed Watermark 4.0
Entropy 13.0.1 (13.0.1.3 x001)
Extrude 13.0
FastCore Routines 13.0.1 (13.0.1.3 x001)
Fibers 13.0
Film Grain 13.0
Filter Gallery 13.0
Flash 3D 13.0.1 (13.0.1.3 x001)
Fresco 13.0
Glass 13.0
Glowing Edges 13.0
Google Earth 4 13.0.1 (13.0.1.3 x001)
Grain 13.0
Graphic Pen 13.0
Halftone Pattern 13.0
HDRMergeUI 13.0
IFF Format 13.0
Ink Outlines 13.0
JPEG 2000 13.0
Kurtosis 13.0.1 (13.0.1.3 x001)
Lens Blur 13.0
Lens Correction 13.0
Lens Flare 13.0
Liquify 13.0
Matlab Operation 13.0.1 (13.0.1.3 x001)
Maximum 13.0.1 (13.0.1.3 x001)
Mean 13.0.1 (13.0.1.3 x001)
Measurement Core 13.0.1 (13.0.1.3 x001)
Median 13.0.1 (13.0.1.3 x001)
Mezzotint 13.0
Minimum 13.0.1 (13.0.1.3 x001)
MMXCore Routines 13.0.1 (13.0.1.3 x001)
Mosaic Tiles 13.0
Multiprocessor Support 13.0.1 (13.0.1.3 x001)
Neon Glow 13.0
Note Paper 13.0
NTSC Colors 13.0.1 (13.0.1.3 x001)
Ocean Ripple 13.0
Oil Paint 13.0
OpenEXR 13.0
Paint Daubs 13.0
Palette Knife 13.0
Patchwork 13.0
Paths to Illustrator 13.0
PCX 13.0.1 (13.0.1.3 x001)
Photocopy 13.0
Photoshop 3D Engine 13.0.1 (13.0.1.3 x001)
Picture Package Filter 13.0.1 (13.0.1.3 x001)
Pinch 13.0
Pixar 13.0.1 (13.0.1.3 x001)
Plaster 13.0
Plastic Wrap 13.0
PNG 13.0
Pointillize 13.0
Polar Coordinates 13.0
Portable Bit Map 13.0.1 (13.0.1.3 x001)
Poster Edges 13.0
Radial Blur 13.0
Radiance 13.0.1 (13.0.1.3 x001)
Range 13.0.1 (13.0.1.3 x001)
Read Watermark 4.0
Reticulation 13.0
Ripple 13.0
Rough Pastels 13.0
Save for Web 13.0
ScriptingSupport 13.0.1
Shear 13.0
Skewness 13.0.1 (13.0.1.3 x001)
Smart Blur 13.0
Smudge Stick 13.0
Solarize 13.0.1 (13.0.1.3 x001)
Spatter 13.0
Spherize 13.0
Sponge 13.0
Sprayed Strokes 13.0
Stained Glass 13.0
Stamp 13.0
Standard Deviation 13.0.1 (13.0.1.3 x001)
Sumi-e 13.0
Summation 13.0.1 (13.0.1.3 x001)
Targa 13.0
Texturizer 13.0
Tiles 13.0
Torn Edges 13.0
Twirl 13.0
U3D 13.0.1 (13.0.1.3 x001)
Underpainting 13.0
Vanishing Point 13.0
Variance 13.0.1 (13.0.1.3 x001)
Variations 13.0.1 (13.0.1.3 x001)
Viveza 2 2.1.20.486
Water Paper 13.0
Watercolor 13.0
Wave 13.0
Wavefront|OBJ 13.0.1 (13.0.1.3 x001)
WIA Support 13.0.1 (13.0.1.3 x001)
Wind 13.0
Wireless Bitmap 13.0.1 (13.0.1.3 x001)
ZigZag 13.0
Optional and third party plug-ins:
Analog Efex Pro 2 2.0.8.486
BackgroundFilter 2.2.20.486
Camera Raw 9.0
Camera Raw Filter 9.0
Color Efex Pro 4 4.3.20.486
Dfine 2 2.2.20.486
FineStructuresFilter 2.2.20.486
HDR Efex Pro 2 2.2.20.486
Hidden NO VERSION
HotPixelsFilter 2.2.20.486
Merge to HDR Efex Pro 2 2.2.20.486
Nik Collection Selective Tool 2.1.25.486
ShadowsFilter 2.2.20.486
Sharpener Pro 3: (1) RAW Presharpener 3.1.20.486
Sharpener Pro 3: (2) Output Sharpener 3.1.20.486
Silver Efex Pro 2 2.2.20.486
SkinFilter 2.2.20.486
SkyFilter 2.2.20.486
StrongNoiseFilter 2.2.20.486
Topaz Adjust 5 10.0
Topaz BW Effects 2 10.0
Topaz Clarity 10.0
Topaz Clean 3 10.0
Topaz DeJpeg 4 10.0
Topaz DeNoise 5 10.0
Topaz Detail 3 10.0
Topaz InFocus 10.0
Topaz Lens Effects 10.0
Topaz photoFXlab 10.0
Topaz ReMask 4 10.0
Topaz Simplify 4 10.0
Topaz Star Effects 10.0
Plug-ins that failed to load: NONE
Flash:
Adobe Watermark
Mini Bridge
Kuler
Installed TWAIN devices: NONEWhat images? What sizes? What does the system event log say?
Mylenium -
In A2500, how to change the Image Size?
I have an A2500 camera. The images are great, but they're huge (1.5mb each) and fill up my memory card way too quickly. How can I use the camera's menu settings so images are stored in a smaller size?
Hi TravelMark!
Thanks for posting!
To change the image size, please press the <FUNC/SET> button. select the [L], then change that to [M1] or [M2].
This didn't answer your question or issue? Find more help at Contact Us.
Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well. -
I really need help I try to change an image size and it just says "Couldn't complete Image Size Command because not enough memory (RAM)" how can I fix it?
Try reducing the ppi. What is happening is the pixel dimensions are getting so large that you just don't have enough memory to handle that size of a document. So a larger document would mean a smaller ppi to effectively keep the pixel dimensions down.
inches x ppi = pixels
pixels / ppi = inches -
How to Increase disk image size of SAM
Hello,
I am trying to increase the disk image size. I am trying to increase to about 6G, but SAM just refused to load the image.
So, is there a limit in SAM about the virtual disk size? Or is it limited to the physical memory of the system?
I have read the thread http://forums.sun.com/thread.jspa?threadID=5239257&tstart=30 and http://forums.sun.com/thread.jspa?forumID=837&threadID=5286038 about enlarging the disk image.
I am using OpenSparc T2 Arch 1.2 and the int12 boot bundle. I am wondering if I should change to the sasdisk for a try.
It is strange, that I previously ran the simulator on a Solaris Express (actually 5.11), and it worked fine.
But now I changed to the Solaris 10, then it failed.
Thank you.
JimAs it turns out, the way to make the image appear larger on the page is to edit and increase the size of the signature "box" on the pdf (under Forms > Add or Edit Fields), to considerably larger than the form might indicate. Otherwise, the signature is constrained to the just the size of the small field on the pdf. Interestingly, as soon as you do so, the signature appears "bolder", likely just because there is more of it. Thanks for your suggestions!
-
Every time I right-click an image in Firefox 3.6.12 to view image size info it says "Unknown (not cached)". Any ideas on why this could be happening and how I can stop it? My OS is Ubuntu 10.10. If you need any more info let me know.
Is the disk cache and the memory cache enabled?
You can check these prefs on the about:config page.
* http://kb.mozillazine.org/browser.cache.disk.enable
* http://kb.mozillazine.org/browser.cache.memory.enable
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
Your More system details list shows two outdated Flash plugins that you should remove and update to Flash 10.1 r102 or at least remove 10.0 r45 and wait until your distribution offers a 10.1 r102 update.
# Shockwave Flash 10.0 r45
# Shockwave Flash 10.1 r85
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/ -
Hello, i am trying to upload an .bin file to my 871 router via tftp.
Everything goes well but when it finishes the uploading it puts:
TFTP flash copy: Error, image size (15930092) mismatches netsize (15917915). I have try with several tftp servers and it looks the same. can anybody help me???
Flash memory is 24Mb. it is not a memory problem, isn?t it?
thank you very much.yeah, since there is a image size mismatch i would say download it again, also with the 871 i loaded a new .bin on it once and it said i need more memory. added more memory and poof, it worked
-
Good Day.
I have recently discovered an issue with scanning. I have tried scanning straight from the printer, through image capture, and through preview. All yeilding the same results since they are essentailly kicking off the same scanning applet. I can scan a jpeg formatted file as long as I applet is in the "Hide Details" mode. If I click on the "Show Details" button, which I need to do to scan to PDF, I immediately receive an error stating: The image size is too big. Please reduce the image height, width, resolution, scaling or output type.
I'm currently using an HP C5180 printer. The most recently installed software was Adobe Digital Editions (I installed this to read an on-line e-book). Not sure if there is any correlation. Thanks for any help.
Mac details are:
Model Name: MacBook Pro
Model Identifier: MacBookPro8,1
Processor Name: Intel Core i5
Processor Speed: 2.3 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Memory: 8 GB
Boot ROM Version: MBP81.0047.B27
Printer access log:
Source: /var/log/cups/access_log
Size: 174 bytes
Last Modified: 11/21/12 10:09 PM
Recent Contents: localhost - - [21/Nov/2012:22:09:16 -0500] "POST / HTTP/1.1" 200 61628 CUPS-Get-PPDs -
localhost - - [21/Nov/2012:22:09:20 -0500] "POST / HTTP/1.1" 200 61628 CUPS-Get-PPDs -
Image Capture Support:
Image Capture Support:
Path: /Library/Image Capture/Support/Hewlett-Packard/Devices/HPAiOScan.bundle/Contents/Info.plist
Version: 2.3.0
Path: /Library/Image Capture/Support/Hewlett-Packard/Devices/HPAiOScan.bundle/Contents/Resources/Dev iceInfo.plist
Version: 2.3.0
Photosmart C5100 series:
Status: Idle
Print Server: Local
Driver Version: 4.0.0
Default: Yes
Shared: No
URI: dnssd://Photosmart%20C5100%20series%20%5B960B9E%5D._pdl-datastream._tcp.lo cal./?bidi
PPD: HP Photosmart C5100 series
PPD File Version: 4.0.0
PostScript Version: (3011.104) 0
CUPS Version: 1.6svn (cups-327)
Scanning support: Yes
Scanning app (bundleID path): -
Scanning app version: -
Scanner UUID: CC8DD435-CC8D-D435-CC8D-D435CC8DD435
Printer Commands: ReportLevels
CUPS filters:
Inkjet:
Path: /Library/Printers/hp/cups/Inkjet.driver/Contents/MacOS/Inkjet
Permissions: rwxr-xr-x
Version: 4.0.0
commandtohp:
Path: /Library/Printers/hp/cups/filters/commandtohp.filter/Contents/MacOS/comman dtohp
Permissions: rwxr-xr-x
Version: 2.1.1
Fax support: No
Printer utility: /Library/Printers/hp/Utilities/HP Utility.app
Printer utility version: 5.9.1
PDEs:
PDE.plugin:
Sandbox compliant: YesHello Sig
The scanner works with a Windows computer, which proves the device is functional at a cursory level. The drivers are now distributed by Apple and this is an Apple computer. There is no scanning software provided by HP. HP's answer is that Mountain Lion takes care of all of this. I anticipate that some setting or driver was somehow tweaked since the scanner had been working with Mountain Lion until a few days ago. The device in question is an Apple product. So, I'm pretty confident that I'm in the right place.
Regards -
Help with displaying image using OpenGL ES sample code - image size prb
I am using some sample code that currently displays an image 256x256 pixels. The code states the image size must be a power of 2. I have tried an image 289x289 (17^2) and it displays a square the same size as the 256x256 with a white background. I want an image 320x320 displayed. Should be obvious for people familiar with OpenGL. Here is the code which displays the image and rotates:
- (void)setupView
// Sets up an array of values to use as the sprite vertices.
const GLfloat spriteVertices[] = {
-0.5f, -0.5f,
0.5f, -0.5f,
-0.5f, 0.5f,
0.5f, 0.5f,
// Sets up an array of values for the texture coordinates.
const GLshort spriteTexcoords[] = {
0, 0,
1, 0,
0, 1,
1, 1,
CGImageRef spriteImage;
CGContextRef spriteContext;
GLubyte *spriteData;
size_t width, height;
// Sets up matrices and transforms for OpenGL ES
glViewport(0, 0, backingWidth, backingHeight);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrthof(-1.0f, 1.0f, -1.5f, 1.5f, -1.0f, 1.0f);
glMatrixMode(GL_MODELVIEW);
// Clears the view with black
//glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glClearColor(255, 255, 255, 1.0f);
// Sets up pointers and enables states needed for using vertex arrays and textures
glVertexPointer(2, GL_FLOAT, 0, spriteVertices);
glEnableClientState(GLVERTEXARRAY);
glTexCoordPointer(2, GL_SHORT, 0, spriteTexcoords);
glEnableClientState(GLTEXTURE_COORDARRAY);
// Creates a Core Graphics image from an image file
spriteImage = [UIImage imageNamed:@"bottle.png"].CGImage;
// Get the width and height of the image
width = CGImageGetWidth(spriteImage);
height = CGImageGetHeight(spriteImage);
// Texture dimensions must be a power of 2. If you write an application that allows users to supply an image,
// you'll want to add code that checks the dimensions and takes appropriate action if they are not a power of 2.
if(spriteImage) {
// Allocated memory needed for the bitmap context
spriteData = (GLubyte *) malloc(width * height * 4);
// Uses the bitmatp creation function provided by the Core Graphics framework.
spriteContext = CGBitmapContextCreate(spriteData, width, height, 8, width * 4, CGImageGetColorSpace(spriteImage), kCGImageAlphaPremultipliedLast);
// After you create the context, you can draw the sprite image to the context.
CGContextDrawImage(spriteContext, CGRectMake(0.0, 0.0, (CGFloat)width, (CGFloat)height), spriteImage);
// You don't need the context at this point, so you need to release it to avoid memory leaks.
CGContextRelease(spriteContext);
// Use OpenGL ES to generate a name for the texture.
glGenTextures(1, &spriteTexture);
// Bind the texture name.
glBindTexture(GLTEXTURE2D, spriteTexture);
// Speidfy a 2D texture image, provideing the a pointer to the image data in memory
glTexImage2D(GLTEXTURE2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GLUNSIGNEDBYTE, spriteData);
// Release the image data
free(spriteData);
// Set the texture parameters to use a minifying filter and a linear filer (weighted average)
glTexParameteri(GLTEXTURE2D, GLTEXTURE_MINFILTER, GL_LINEAR);
// Enable use of the texture
glEnable(GLTEXTURE2D);
// Set a blending function to use
glBlendFunc(GL_ONE, GLONE_MINUS_SRCALPHA);
// Enable blending
glEnable(GL_BLEND);
// Updates the OpenGL view when the timer fires
- (void)drawView
// Make sure that you are drawing to the current context
[EAGLContext setCurrentContext:context];
glBindFramebufferOES(GLFRAMEBUFFEROES, viewFramebuffer);
glRotatef(direction * 3.0f, 0.0f, 0.0f, 1.0f);
glClear(GLCOLOR_BUFFERBIT);
glDrawArrays(GLTRIANGLESTRIP, 0, 4);
glBindRenderbufferOES(GLRENDERBUFFEROES, viewRenderbuffer);
[context presentRenderbuffer:GLRENDERBUFFEROES];
}+I am using some sample code that currently displays an image 256x256 pixels. The code states the image size must be a power of 2. I have tried an image 289x289 (17^2)+
The phrase "a power of 2" refers to 2^x so your choices above 256 are 512, 1024 etc.
The texture size has nothing to do with the displayed size - OGL will stretch or shrink your texture to fit the size of the polygon you're displaying it on. I recommend you scale your image to 256x256 and work on make the polygon the size you want and work on your image quality from there.
You can work on the size or orientation of the poly surface to make it larger but OGL doesn't support setting a model to a screen image size or anything like that. That sounds more like a Quartz or CoreGraphics kind of thing if you want to set an exact screen size to the pixel.
HTH,
=Tod
PS You can display your code correctly by using { code } (without the spaces) on either side of your code block. -
Hi, What is the IDEAL image size for my address book Contacts?
Thanks
Black N-97 V.22.0.110 CV.22.0.110.238.04 -Rm-505Code : 0586701Direct from NOKIA warehouse.
NOKIA - no more LEMON N97.!! ( Android) is Plan for JAN2011Fender is spot on. If the image is the same size in pixels as your screen, then most current models will give you a dull-sized image when the contact calls you. Using the screen size as a maximum size let you keep the full display benefit whilst minimising the use of phone memory.
Contacts are usually less than 1Kb in size, add a 240x320 image and it can become 10-20Kb in size - but is you use a 5-megapixel photo takes you into megabyte territory, which is bad news for the N97 which is poorly served with C: drive memory space. -
IOS -- Why recommended Flash is Much more than Image Size
Its Generally Observed that when we download an image the Image size is Much less than the Recommended Flash Card Size.
eg
First Image Information CURRENT
Image Name s72033-pk9sv-mz.122-18.SXD4.bin
DRAM / Min Flash 512 / 64
Size ~~ 48 Mb
Second Image Information
Image Name s72033-adventerprisek9_wan-mz.122-33.SXH3a.bin
DRAM / Min Flash 512 / 512
Size~~ 78Mb
Why So ? Bcuz other files like config / vlan.dat dont demand Much space & For a Backup Image256 Mb would be Enough. Please Elaborate Your AnswerAdesh,
Generally memory sizes are incremental ie 16,32,64,128 etc... So of course you have to have the available amount of memory to be able to store the IOS on it. Many routers now come with the SDM GUI that takes up 6-8Mb on flash memory, and I think Cisco does take things like that into consideration.
On your second image with the 512Mb recommended amount of flash I think is a typo. I see no reason why 512Mb is required for a 78Mb file. You could hold several IOS files with that amount of flash (which is nice) but not required.
I believe that the vlan.dat and the startup-config are still housed in NVRAM. Which is a completely different file system than flash.
HTH,
Mark -
New Image Size and Resolution in CC
Hi there.
Ok, maybe i'm missing something, but how do i reduce the ppi's of a given image in the Photoshop CC? Changing it in the image size, in the Resolution field, it acomplish nothing. It logs an entry in the History panel, but nothing changes in the picture. Did Adobe changed how this works, or it's just a bug?
Thank you.Try setting to real-world measurement, like inches or cm.
Hi Charles, i think that change in cm/mm/in it's the only way to change the image ppi (in my case save/resample it to 108ppi). Can you confirm that this is correct?
Anyway when i go to image size (new panel of CC) the w/h are:
1) grey and always set in pixel with resample flagged.
2) always set in inches with resample NON-flagged (also if my ruler unit is in Pixel).
(and actually that is not new behavior. CS6 behaved same way when width and height were set to percent)
In CS6 and CC i never seen w/h in percent - where is my error?
Many thanks! -
Is it right to mix sizes of memory modules in a mac mini 2012? for example 2Gb 8Gb?
Is it right to mix sizes of memory modules in a mac mini 2012? for example 2Gb 8Gb?
Welcome to the Apple Support Communities
You can do that without any problem, always that the total amount of memory is less than the maximum memory your Mac mini supports. A Late 2012 Mac mini supports 16 GB of memory, and you can find in this site the steps to install more memory > http://support.apple.com/kb/HT4432?viewlocale=en_US&locale=en_US#1
Maybe you are looking for
-
Iphone 4s 16 gb 6.0.1 10.6 Geolocation is ON. But not work without WiFi ON and Сellular Data ON by using 'iGo primo' navigation, Google maps etc. Location is not determined. Looking for a GPS signal, but can not find. My Iphone 4 and Ipad2 with the s
-
I've disconnected iPhoto from my main photo collection
While poking around on an external hard drive, I came across an old folder of photos. I click to open it and iPhoto said I had to update the folder with iPhoto in order to view it, which I did. The folder contained just a few old photos. But now, I o
-
What is the best way to install & clone hard drives on macbooks? does apple do that?
It is time for a new hard drive for my macbook - just doiubles the memory, but am still getting the spinning beach ball. The genius bar told me I need a new hard drive, but that I could buy it and out it in myself. But, I just heard that the best way
-
OEI Install and Re-install issue
Hi all, I have a user that has uninstalled and re-installed OEI, and now he is getting a runtime error Runtime error '5'; Invalid Procedure call or Argument Looking at his screenshot, it looks like it is when he is trying to sign-in to CRM OD. Apprec
-
Problem in my OCJP success kit.
Dear All, First of all, I am glad to inform you that I completed my OCJP6 certification on 2 nd Aug,2011. During my exam I had given my residence address to deliver the success kit. Afterwards I realized that since I am in office at working hours I s