Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

CSDE Question


BeNjO
 Share

Recommended Posts

Just curious on how to get the item editor picture to work on CSDE. Iv tryed everything, bmp/png diff sizes, .png count works; the scroll bar is the right amount of items in my folder,  bmp the scroll bar is 0.

Iv been trying to figure this out for the past few days and everything i have done i have returned beaten.
Link to comment
Share on other sites

No this did not exist:

```
Public Sub GDIRenderItem(ByRef picItem As PictureBox, ByVal Item As Long)
Dim height As Long, width As Long, sRECT As RECT

    ' exit out if doesn't exist
    If Item <= 0 Or Item > Count_Item Then Exit Sub

    height = D3DT_TEXTURE(Tex_Item(Item)).height
    width = D3DT_TEXTURE(Tex_Item(Item)).width

    sRECT.top = 0
    sRECT.bottom = 32
    sRECT.left = 0
    sRECT.Right = 32

    ' Start Rendering
    Call D3DDevice8.Clear(0, ByVal 0, D3DCLEAR_TARGET, 0, 1#, 0)
    Call D3DDevice8.BeginScene

    'EngineRenderRectangle Tex_Item(sprite), 0, 0, 0, 0, 32, 32, 32, 32, 32, 32
    RenderTexture Tex_Item(Item), 0, 0, 0, 0, 32, 32, 32, 32

    ' Finish Rendering
    Call D3DDevice8.EndScene
    Call D3DDevice8.Present(sRECT, ByVal 0, picItem.hwnd, ByVal 0)
End Sub
```
And some more bits about the rendering and saving of the images. It works now thanks all /lock
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...