photoshop

Javascript get all files minus certain file extentions

北城以北 提交于 2019-12-24 09:57:59
问题 I have a script that returns all the files contained within a folder. However, there are some file types in there that I do not want my script to do anything with. I just want it to literally skip over it as if it wasn't there and only deal with the other file types. How can I achieve this? So far this is how I'm getting all the files contained within a folder: var samplesFolder = Folder(Path) //Get the files var fileList = samplesFolder.getFiles() //Creat Array to hold names var renderTypes

Photoshop JS script to create and apply a layer mask

你说的曾经没有我的故事 提交于 2019-12-23 20:22:41
问题 I wrote a Photoshop script in JS that takes each layer folder and spaces it out like a sprite sheet. I've figured out that part, but I'm trying to remove any form of human error while running the script. Right now, you need to prep your file with the correct naming of each layer folder, and you also have to apply a layer mask to the selection. I want to remove the need for the user to apply a layer mask. I can select the layer, and then select the portion I want to mask, but I have no clue on

Why do images loaded to texture with IMG_Load in SDL and OpenGL look bluish?

半世苍凉 提交于 2019-12-23 17:09:13
问题 I'm loading a PNG texture with: void Sprite::setTexture(string f) { SDL_Surface *image = IMG_Load(f.c_str()); if (image == NULL) { this->texture = -1; return; } SDL_DisplayFormatAlpha(image); unsigned object(0); glGenTextures(1, &object); glBindTexture(GL_TEXTURE_2D, object); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER, GL_LINEAR); glTexParameterf(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,GL_CLAMP_TO_EDGE); glTexParameterf(GL

Photoshop Script: exportDocument

南楼画角 提交于 2019-12-23 09:33:58
问题 I want to save my image as a transparent PNG and wrote a script which suddenly stopped working. I get this error message: docExportOptions = new ExportOptionsSaveForWeb docExportOptions.format = SaveDocumentType.PNG //-24 //JPEG, COMPUSERVEGIF, PNG-8, BMP docExportOptions.transparency = true docExportOptions.blur = 0.0 docExportOptions.includeProfile = false docExportOptions.interlaced = false docExportOptions.optimized = true docExportOptions.quality = 100 docExportOptions.PNG8 = false

What exactly is the font-size? [duplicate]

[亡魂溺海] 提交于 2019-12-23 02:47:29
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: CSS Font Size Specifics I have been wondering what exactly is the font size when it comes to web design. I mean if I set the font size to 25px, will my text have a height of 25px ? Because I tried that with photoshop and if I set the font size to 30px, a regular capital letter (ex: "B") will be 24px tall, a regular letter (ex: "a") will be 19px tall and a "j" will be 27px tall. So what exactly means the font

Is there a way to mimic photoshop's overlay filter with CSS?

佐手、 提交于 2019-12-22 06:57:01
问题 The overlay blend alters the color of the image on top, as opposed to just altering the transparency. Is there a way to mimic this with CSS? Just exporting a photoshop image with the layer set to overlay and placing it over a background on the web page doesn't work. 回答1: It can't be done with pure css, but it can be done with javascript. Check out Pixastic's blend function, it has ~20 blending methods that match those in photoshop. Note: this answer has become less accurate over the years.

Photoshop Script to create text in a bitmap image in Photoshop

拈花ヽ惹草 提交于 2019-12-21 23:47:48
问题 I have very large size 1-bit images that I need to write arrays of text to in Photoshop. I can do this in javascript by converting the images to grayscale and then creating a new layer for each block of text, but I would like to be able to write text directly onto the 1-bit bitmap to save time. Is there a way to do this in javascript? 回答1: You can create text with scripting. You will need to be in grayscale (or RGB) to do so. Here's a basic text function. You will have to position the text

Winforms Transparency Issue (i going crazy with it)

爱⌒轻易说出口 提交于 2019-12-21 17:45:26
问题 i will show you an image below but before that... if you have seen yahoo widgets or cartoony/themed windows media player skins.. i am building a titlebar less... background less... application... its looks like this (source: deviantart.net) the darker background you see is actually my wallpaper cuz this is a screen shot... to attain this.. the shape of body and the lines, i use Trasparent PNG.. then i use the transparency key of the Win Form to make it transparent.. and the image is loaded in

Color consistency between Photoshop, iPhone Simulator, and iPhone

只谈情不闲聊 提交于 2019-12-21 06:26:35
问题 I've been working a lot with Photoshop .psd files recently and have been bouncing back and forth a lot to ensure colors look just right on the iPhone. Can anyone offer some tips on calibrating macbook/apple cinema displays in regards to keeping color consistency between Photoshop, the iPhone simulator, and physical iPhones? 回答1: Have a look on LiveView created by Nicholas Zambetti. You need to install it on your iPad/iPhone/iPod Touch and on your Mac. when synced (Mac and device) you can have

How to load an image in active document? (Photoshop Scripting)

旧街凉风 提交于 2019-12-21 04:36:12
问题 I am new to photoshop scripting. I want to load an image image (from my hard disk) into the active document as a new layer with positioning. How can this be done? Can somebody please share the code? Thanks 回答1: You can open Photoshop File Dialog for searching your image and adding that into a layer file = app.openDialog();//opens dialog,choose one image if(file[0]){ //if you have chosen an image app.load(file[0]); //load it into documents backFile= app.activeDocument; //prepare your image