Photoshop: Copy and paste an image without trimming transparency [closed] - photoshop

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have an image fo this kind:
1000x1000 but only a portion of the image is opaque, think a filled circle on the left, other picels are transparent.
I want to copy/paste only a portion of the image with an area choosed by me:
I drag and drop the mouse so that part will be 400x100 but when i paste i have an image 300x76.
photoshop has trimmed my image, but i want it with the border of the image choosed by me, i want that coordinates.
preparing an image 400x100 blank and copying that image doesn't solve my problem because i must pan the image on the original position.
how can i copy/paste the image without trimming?
thanks

Your problem is because you're asking Photoshop to take into account an area that doesn't exist (it's transparent). You cannot "Copy" an area where nothing exists in Photoshop. Your only option is to place something (a colour) in the corners where the transparency exists, select your area, Copy Merged (using CTRL + SHIFT + C) and then delete the extra colour once you've pasted it.
There's no other way around it.

it depends by which method you are doing copy paste.
i suggest you to use marquee tool.
select marquee tool
drag it to your desired area,now copy and than paste it.,if its not copying the thing press cntrl+shift+c because most of the time,Photoshop memory don't behave dynamically.

Related

UITableView Rounded Custom Cells (w/ image) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have quite a daunting challenge. I want to make this:
So:
I use a table (plain not grouped cells).
Cells must have rounded corners & shadow.
I would prefer to use CGRect to draw the cells instead of using images (for speed & space economy).
The cells in their most basic form look like Cell 1, but some have extra checkboxes like Cell 2.
Tutorials that say to use images as background for rounded cells never touch on the point about sliding the cell to reveal actions. I think that by using an image the entire frame of the cell will slide and look really awkward. How can that be overcome?
Is it possible to mix cells? Regarding adding checkboxes I though of 2 ways. Either extend the entire cell downwards and add the checkboxes & text OR just add a 2nd cell type specifically made for checkboxes (I prefer this option but I don't know if it's possible to mix cell types).
NOTE: The cell is the ENTIRE rounded rectangle, not just the upper part (The upper part is the title). They grey line is only for style and will be just an image.
I won't ask about a specific way of doing this. Each has it's own way of doing things. If you know how to do one of the things above (except creating a table view :) ), please help me (but keep in mind that it must be compatible with the rest)!
Note 2: Swift is preferred but Obj-C is fine too (unless code can't be ported to Swift).
Thanks!
i would create custom table view cells for your table view by subclassing UITableViewCell, assigning it to your table view, and from there you would be able to customize the cell with a UIView and customize the .layer.cornerRadius including all the shadow properties on .layer

Table View not stretching vertically iPhone 6 [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
The tableview isn't stretching all the way vertically in iPhone 6 or iPhone 6 Plus.
Any ideas why this is happening? Thanks!
Storyboard:
UPDATE:
This question was actually really helpful in another thing to check for as to why the tableview was getting cut off: Why is my UITableView cut off in iOS 7?
There's a whole bunch of things you want to check for if your Table View Cell are getting cut off:
- are they pinned to superview or content view?
- are the constraints such that you are cutting off content without knowing it?
- is a navigation bar or tab bar cutting off content?
- check the auto resizing mask or add one if need be settingsTable.autoresizingMask &= ~UIViewAutoresizingFlexibleBottomMargin;
And multiple other reasons. Its tricky, so if you come across this Q+A and need help, just drop a note and will help!
Select your tableView and pres Pin (a litte square icon with lines on the sides down in Xcode). Then add the bottom constraint (click here, it will turn red) and set value 0. Enjoy

Moving and resizing the Rectangle inside the Canvas In Windows 8 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How I can move and resize a rectangle inside the Canvas horizontally in windows 8. I am trying to create a scale like control in my application. It will work like I can resize the rectangle horizontally and also it is possible to move the rectangle inside the canvas. Based on the rectangle position I will calculate the scale value. But when I try for the same I get stuck with resizing the rectangle(Drag on the left and right side of the rectangle to expand). Please anyone guide me to develop the same. No need to take effort for creating a sample for me. Just guide me, I will do the rest.
It sounds to me like you are trying to allow for two different operations with the same gesture (single point of contact that moves on the surface). The behavior sounds to me like you want the rectangle to resize horizontally when you drag on the far left of right of it and to move around on the canvas when you drag anywhere else on it (please correct me if this is wrong).
I would think that you would want to use the Scale gesture for the resizing and a Translate gesture for the movement. In the past I have used UIElement.ManipulationMode with handlers for the appropriate manipulation events (e.g. ManipulationStarted, ManipulationCompleted, etc). I have also seen some mention of using GestureRecognizer but haven't used it directly myself.
Once you have each action (drag or resize) managed by a distinct gesture you should just be able to update the size of the Rectangle by either directly changing its height and width values or by using a ScaleTransform.

Changing object's color in Blender [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am trying to change the color of my 3D object in Blender. Is there any way to do it run time through actuators?
Thanks in advance
You can use a python script to change the colour. Most likely you want to adjust the diffuse_color property of the material, which is an array of three numbers - [0]=red [1]=green [2]=blue.
While they don't show up in the action editor you can add keyframes to the colour components to create material actions and they will show up in action actuators list to play. To animate a colour you add a keyframe by right-clicking on the colour swatch and selecting Insert keyframe or press I while the mouse is over the colour swatch. Then move to another frame adjust the colour and set another keyframe.

Photoshop eyedropper sets background colour, not foreground [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I've been putting up with this for probably too long. For some odd reason, when I used the Photoshop CS5 eyedropper tool, it sets the background colour - which is really annoying. I've never experienced this in all my years of using Photoshop. Each time I set a colour, I'm forced to then use the x keyboard shortcut to swap the background/foreground colours.
How do you get the eyedropper tool back to the default setting? (without re-installing :)
Wow - ok it was easy. Go to Window > Color, then ensure the foreground colour is the selected one. There's a really fine, almost un-noticable line around the one that is selected. Mine was set on the background colour.
You can also click on the one you want to set, in the toolbar, then pick the colour. That's what I usually do anyways I think!